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

int main() {
  char str[30];
  int l;
  char tmp;

  cin >> str;
  l = strlen(str);
  for (int i=0; i<l/2; i++) {
    tmp = str[i];
    str[i] = str[l-i-1];
    str[l-i-1] = tmp;
  }
  cout << str << endl;
  return 0;
}