#include <iostream>
#include <string>

using namespace std;

string str;
int l;
char ch;
int main(){
	cin >> str;
	l = str.length() - 1;
	for(int i=0;i<=l/2;i++){
		ch = str[i];
		str[i] = str[l-i];
		str[l-i] = ch;
	}
	cout << str << endl;
	return 0;
}