#include<iostream>
#include<string>

using namespace std;

int main(){

  string s;

  cin >> s;
  //abcd
  int len = s.length();
  // len = 4

  for(int i = len; i >= 0; i--){
    cout << s[i];
  }

  cout << endl;

}