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