#include <iostream>
#include <string>

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