#include <iostream>
#include <cstdio>
using namespace std;
int main() { 
  int count=0;  
  char str[21]={}; 
  while(scanf("%c",&str[count])) {  
    if(str[count] == '\n') break;
    count++;
  } 
  for(int i=count-1; i>=0; i--) {  
    cout << str[i];  
  } 
  cout << endl; 
  return 0;
}
