#include<bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x; if(x>0) { while(x>0) { y=x%10; cout<<y; x/=10; } } **else if(x<0) { cout<<"-"; while(-x<0) { y=-x%10; cout<<y; x/=10; } }** else cout<<'0'; return 0; }