#include<iostream>
#include<vector>
using namespace std;
	
int main(){
	vector<char> s;
	char t;
	while(cin>>t){
		s.push_back(t);
	}
	for(vector<char>::reverse_iterator  it = s.rbegin(); it != s.rend(); it ++)
	{
		cout<<(*it);
	}

	
	cout<<endl;
}