#include <iostream> #include <string> using namespace std; int main() { char s[4]; cin>>s; for (int i=3; i>=0; i--) { cout<<s[i]; } }