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

/*
char* reverse(string s);

int main() {
	string str;
	cin >> str;
	
	val = reverse(str);
	
	cout << val << endl;
}

char* reverse(string s) {
	int size = s.length;
	char* val = new char[size];
	for(int i = 0; i < size; ++i) {
*/

int main() {
	string str;
	cin >> str;
	reverse(str.begin(), str.end());
	
	cout << str <<endl;
}