#include<bits/stdc++.h> using namespace std; int main() { int n,m,sum=0; cin>>n; while(n!=0){ sum=sum*10+n%10; n=n/10; } cout<<sum<<endl; return 0; }