#include<iostream>
#include<string>

using namespace std;


int main(){
	int num,i;
	string str,tmp;
	cin >> str;
	num = str.length();
	tmp = str;
	for(i = 0; i < num ; i++)
		str[i] = tmp[num-i-1];
	cout << str << endl;
}