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

using namespace std;

int main(void){

  string str;

  cin >> str;

  for( int i = str.size() ; i >= 0 ; i-- ){
    cout << str[i]; 
  } 
  cout << endl;
  return 0;
}