#include<bits/stdc++.h> using namespace std; int main(){ int n,d=0,g; cin>>n; while(n){ g=n%10; n=n/10; d=d*10+g; } cout<<d; return 0; } /************************************************************** Problem: 1121 User: cyp Language: C++ Result: Accepted Time:8 ms Memory:2072 kb ****************************************************************/