#include using namespace std; int n; string s; int main() { cin >> n; for (int i = 0; i < 3; i++) { s = to_string(n % 10) + s; n /= 10; } cout << s << endl; }