#include using namespace std; int main(){ string S; cin >> S; reverse(S.begin(),S.end()); cout << S << endl; }