#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; for (int i = a.size(); i >= 0; i--) { cout <<a[i]; } return 0; }