#include <iostream> #include <string> using namespace std; int main() { string str; while (cin>>str) { for (int i = 3; i>=0; i--) { cout<<str[i]; } cout<<endl; } } // 64 位输出请用 printf("%lld")