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