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