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