#include
#include
int DataReverse(int data)
{
char xStr[32];
memset(xStr, 0, sizeof(xStr));
_itoa(data, xStr, 10);
int len = strlen(xStr);
for (int i = 0; i < len / 2; i++)
{
char temp = xStr[i];
xStr[i] = xStr[len - 1 - i];
xStr[len - 1 - i] = temp;
}
return atoi(xStr);
}
int _tmain(int argc, _TCHAR* argv[])
{
int x;
scanf("%d", &x);
x = DataReverse(x);
printf("%d",x);
return 0;
}