#include <iostream>
#include <string>

using namespace std;

int main(void){

  string hoge;

  cin >> hoge;

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