#include<iostream> using namespace std; int n; int main() { scanf("%d",&n); int res = 0; while(n) { res = res*10 + n%10; n /= 10; } printf("%d",res); return 0; }