#include<iostream> using namespace std; int main() { int input; cin >> input; int output = 0; while(input!=0) { output=output*10+input%10; input/=10; } cout<<output; }