#include <iostream>
#include <string>

int main(){
	std::string str;
	std::cin >> str;
	
	for(auto it = str.rbegin(); it != str.rend(); ++it){
		std::cout << *it;
	}
	std::cout << std::endl;
	
	return 0;
}