/* -*- coding:utf-8 -*- */

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

int main()
{
  string s;
  cin >> s;
  string::reverse_iterator it = s.rbegin();

  while(it != s.rend()) {
    cout << *it;
    it++;
  }
  cout << endl;

  return 0;
}