#include <stdio.h>
int main()
{
int m;
while(scanf("%d",&m)!=EOF)
{
int a1,a2,a3,sum,n;
a1=m%10;
n=(m-a1)/10;
a2=n%10;
a3=m/100;
sum=100*a1+a2*10+a3;
printf("%d\n",sum);
}
return 0;
}
转载于:https://www.cnblogs.com/xiaziteng/p/3905618.html