#include <iostream> using namespace std; int main () { int m; cin >> m; while(m != 0) { cout << m % 10; m /= 10; } return 0; }