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

int main(){
	string line;
	cin>>line;
	for(int x=0,y=line.size()-1;x<y;++x,--y){
		char el = line[x];
		line[x] = line[y];
		line[y] = el;
	}
	cout<<line<<endl;
	return 0;
}