#include<bits/stdc++.h> using namespace std; int main() { //freopen(".in","r",stdin); //freopen(".out","w",stdout); int a; cin>>a; while(a!=0) { int temp=a%10; cout<<temp; temp/=10; } return 0; }