#include <iostream>
#include <string>
using namespace std;

int main() {
  string str,stri;
  int n;
  cin >> str;
  n = str.size();
  for(int i=0;i < n/2;i++) {
    stri[0] = str[i];
    str[i] = str[n-i-1];
    str[n-i-1] = stri[0];
  }
  cout << str << endl;
}