#include <iostream>
#include <string>

using namespace std;

int main()
{
	string s1,s2;
	cin >> s1;
    int i,j;
	for(i=s1.size()-1,j=0;i>=0;i--,j++){
		s2[j] = s1[i];
	}
	
	for(i=0;i<s2.size();i++){
		cout <<s2[i];
	}
	cout <<endl;
	
	return 0;
}