# include
int main(void)
{
int n, s = 0;
scanf("%d", &n);
while (n)
{
s = s * 10 + n%10;
n /= 10;
}
printf("%d\n", s);
return 0;
}
# include
int main(void)
{
int n, s = 0;
scanf("%d", &n);
while (n)
{
s = s * 10 + n%10;
n /= 10;
}
printf("%d\n", s);
return 0;
}