#include
char* itoa(int n, char*string)
{
static int i = 0;
if(n<0)
{
string[i]='-';
i=i+1;
n=-n;
}
if(n/10 == 0)
{
string[i] = n + 48;
string[i+1]='\0';
}
else
{
itoa(n/10, string);
i++;
string[i] = n%10+48;
string[i+1]='\0';
}
return string;
}
int main()
{
char string[10];
int n;
scanf("%d",&n);
itoa(n,string);
printf("%s",string);
return 0;
}