#include <stdio.h>
inline void scanint(long long *x)
{
register char c = getchar_unlocked();
*x = 0;
for(; (c<48)||(c>57);c = getchar_unlocked());
for(; (c>47)&&(c<58);c = getchar_unlocked())
*x = (int)((((*x)<<1) + ((*x)<<3)) + c - 48);
}
inline void printint(long long n)
{
if(n == 0)
{
putchar_unlocked('0');
putchar_unlocked('\n');
}
else if(n == -1)
{
putchar_unlocked('-');
putchar_unlocked('1');
putchar_unlocked('\n');
}
else
{
char buf[11];
buf[10] = '\n';
int i = 9;
while(n)
{
buf[i--] = n % 10 + '0';
n /= 10;
}
while(buf[i] != '\n')
putchar_unlocked(buf[++i]);
}
}
int main(void)
{
long long x;
scanint(&x);
printint(x);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmlubGluZSB2b2lkIHNjYW5pbnQobG9uZyBsb25nICp4KQp7CglyZWdpc3RlciBjaGFyIGMgPSBnZXRjaGFyX3VubG9ja2VkKCk7CgkqeCA9IDA7Cglmb3IoOyAoYzw0OCl8fChjPjU3KTtjID0gZ2V0Y2hhcl91bmxvY2tlZCgpKTsKCWZvcig7IChjPjQ3KSYmKGM8NTgpO2MgPSBnZXRjaGFyX3VubG9ja2VkKCkpCgkJKnggPSAoaW50KSgoKCgqeCk8PDEpICsgKCgqeCk8PDMpKSArIGMgLSA0OCk7Cn0KCmlubGluZSB2b2lkIHByaW50aW50KGxvbmcgbG9uZyBuKQp7CglpZihuID09IDApCgl7CgkJcHV0Y2hhcl91bmxvY2tlZCgnMCcpOwoJCXB1dGNoYXJfdW5sb2NrZWQoJ1xuJyk7Cgl9CgllbHNlIGlmKG4gPT0gLTEpCgl7CgkJcHV0Y2hhcl91bmxvY2tlZCgnLScpOwoJCXB1dGNoYXJfdW5sb2NrZWQoJzEnKTsKCQlwdXRjaGFyX3VubG9ja2VkKCdcbicpOwoJfQoJZWxzZQoJewoJCWNoYXIgYnVmWzExXTsKCQlidWZbMTBdID0gJ1xuJzsKCQlpbnQgaSA9IDk7CgkJd2hpbGUobikKCQl7CgkJCWJ1ZltpLS1dID0gbiAlIDEwICsgJzAnOwoJCQluIC89IDEwOwoJCX0KCQl3aGlsZShidWZbaV0gIT0gJ1xuJykKCQkJcHV0Y2hhcl91bmxvY2tlZChidWZbKytpXSk7Cgl9Cn0KaW50IG1haW4odm9pZCkgCnsKCWxvbmcgbG9uZyB4OwoJc2NhbmludCgmeCk7CglwcmludGludCh4KTsKCXJldHVybiAwOwp9Cg==