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

using namespace std;

int main(void){

  string s;

  cin >> s;

  reverse(s.begin(),s.end());

  cout << s << endl;

  return 0;
}