#include <iostream> #include <cstdio> using namespace std; int main() { int n,z=0; cin>>n; while(n!=0){ z=z*10+n%10; n=n/10; } cout<<z; return 0; }