#include<iostream>

using namespace std;

#define rep(i, n) for (int i = 0; i < int(n); ++i)

int main() {
  string str;
  cin >> str;
  rep (i, str.size()) {
    cout << str[str.size() - i - 1];
  }
  cout << endl;
}