void main() { string str; cin >> str; string::iterator i = str.end(); while(i != str.begin()) cout << *(--i); cout << endl; }