#include<iostream> using namespace std; int main() { int n,sum=0,a; cin>>n; if(n<0){ cout<<"-"; n=-n; } while(n!=0){ a=n%10; sum=sum*10+a; n/=10; } cout<<sum; return 0; }