#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
  string str;
  int n;
  cin >> str;
  n = str.size();
  reverse( str.begin() , str.end() );
  cout << str << endl;
}