#include<iostream> using namespace std; int n(int x){ cout<<x%10; x/=10; if(x!=0) n(x); } int main(){ int x; cin>>x; n(x); return 0; }