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

#define rep(i,n) for(int i=0; i<n; i++)
#define swap(a,b) tmp=a, a=b, b=tmp
int main(){
	string s;
	cin >>s;
	for(int i=s.length(); i>=0; i--) cout << s[i];
	cout << endl;
    return 0;
}