void reverse(char *p,char *q)
{
char t;
while(p {
t=*p;
*p=*q;
*q=t;
p++;
q--;
}
}
char *myitoa(int value,char * const string,int radix )
{
char *s=string,sign=0;
if(!value)
{
*s++='0';
}
else
{
if(value {
sign=1;
value=-value;
}
while(value)
{
*s++="0123456789ABCDEF"[value%radix];
value/=radix;
}
if(sign)
{
*s++='-';
}
reverse(string,s-1);
}
*s='\0';
return string;
}
int main(void)
{
int n,radix=10;
char str[100];
scanf("%d",&n);
puts(myitoa(n,str,radix));
return 0;
}