#include<cstdio>
#include<bits/stdc++.h>
using namespace std;
int main ()
{
/**char str[100];
string key;
cin>>key;
reverse(key.begin()+1,key.end()-2);
翻转的是起点和终点这段区间 和sort用法类似;[st,ed)
cout<<key<<endl;*/
/**
scanf("%s",str);
int len=strlen(str);
reverse(str+1,str+len);
/**
对于定义的char型的话呢,就是填充的是翻转的位置,从哪里到哪里;类型和sort一样;
*/
cout<<str<<endl;
return 0;
}