#include <iostream> using namespace std; int main() { int b; cin >> b; cout << b % 10; b /= 10; cout << b % 10; b /= 10; cout << b % 10; }