#include<iostream>
#include<string>

int main()
{
	std::string str;

	std::cin >> str;

	size_t strL = str.length();

	for(size_t i=0; i<strL; ++i)
	{
		std::cout << str[strL-1-i];
	}
	std::cout << '\n';

}