#include <iostream> using namespace std; int main() { string s; cin>>s; int length = s.size(); for(int i=length-1;i>-1;i--) { cout<<s[i]; } }