#include<iostream>
#include<string>

using namespace std;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)

int main(void){
  string str;
  cin>>str;
  for(int i = str.size () - 1 ; i >= 0 ; i --)
    cout<<str[i];
  cout<<endl;
}