/*#include <stdio.h>
long long int win(int a, int b)
{
if (b==0)
{
return 1;
}
long long int c=win(a,b/2);
if (b%2==0)
{
return c*c;
}
else
{
return c*c*a;
}
}
int main()
{
int a, b;
scanf("%d %d",&a,&b);
printf("%lld",win(a,b));
return 0;
}
*/
/*#include <stdio.h>
long long int win(int a, int b)
{
if (b==0)
{
return 1;
}
long long int c=win(a,b/2);
if (b%2==0)
{
return c*c;
}
else
{
return c*c*a;
}
}
int main()
{
int a, b;
scanf("%d %d",&a,&b);
printf("%lld",win(a,b));
return 0;
}
*/
#include<stdio.h>
void sum(int b)
{
int rev=0;
rev=rev*10 + b%10;
b=b/10;
printf ("%d",rev);
if (b==0)
{
return;
}
sum (b);
}
int main ()
{
int b;
scanf ("%d",&b);
sum(b);
return 0;
}



