#include<bits/stdc++.h> using namespace std; string s,s_1; int main(){ cin>>s; for(int i=s.size();i>=0;i--){ s_1+=s[i]; } cout<<s_1; return 0; }