for(x=0;x<100;x=x+2)
{
if(x%4) continue;
cout<<x;
}
for(int x = 0; x < 100; x = x + 2)
{
if(x % 4) cout << x;
}
for(int x = 0; x < 100; x = x + 2)
{
if(x % 4 == 0) continue;
cout << x;
}
for(int x = 2; x <= 100; x += 4)
{
cout << x;
}
int main() {
int x;
cin >> x;
if (x % 2 == 0 && x % 4 != 0) {
cout << x << endl;
}
}