#include <iostream>
#include <string>

using namespace std;

string sort(string str){
	int len, len2 = 0;
	char work; 

	len = str.length();

	// 両端から交換
	for(len = len - 1; len > len2; len--, len2++){
		work =  str[len];
		str[len] = str[len2];
		str[len2] = work;
	}
	return str;
}

int main(){
	string str;
	cin >> str;
	str = sort(str);
	cout << str << endl;
	return 0;
}