include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,x;
cin>>x;
a=x%10;
b=x/10%10;
c=x/100;
cout<<a<<b<<c<<endl;
return 0;
}
using namespace std;
int main()
{
int a,b,c,x;
cin>>x;
a=x%10;
b=x/10%10;
c=x/100;
cout<<a<<b<<c<<endl;
return 0;
}