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