#include<iostream> 
#include<string>
using namespace std; 

int main() {
	char str[21];
	cin >> str;
	int length = std::strlen(str);
	int x;
	for (int i = 0; i < length; i++){
		x = length - i - 1;
		cout <<str[x];
	}
	cout << "\0\n";
	return 0;
}