

 #include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

int main(){

  string s;

  cin>>s;

  reverse(s.begin(),s.end());

  cout<<s<<endl;

    return 0;
}