#include <iostream>                                             
#include <string>                                               
using namespace std;                                            
                                                                
int main() {                                                    
  string str;                                                   
  cin >> str;                                                   
  for (int i=str.size(); i--;) {                                
    cout << str[i] << flush;                                    
  }                                                             
  cout << endl;                                                 
  return 0;                                                     
}                                                               
                                                                
                                                                
                       