#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main(void) {
  string S;
  cin >> S;
  for (int i = S.size() - 1; i >= 0; i-- )
    cout << S[i];
  cout << endl;
}

