using namespace std; int main(){ string s; cin >> s; int n = s.size(); for (int i = n; i >= 0; i--){ cout << s[i]; } return 0; }