#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
int x1 = x/100;
int x2 = x/10-x1*10;
int x3 = x%10;
printf("%d",x3*100+x2*10+x1);
return 0;
#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
int x1 = x/100;
int x2 = x/10-x1*10;
int x3 = x%10;
printf("%d",x3*100+x2*10+x1);
return 0;