#include #include #include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string S; S.reserve(100), cin >> S; auto itr = S.begin(); while (islower(*itr)) ++itr; reverse(S.begin(), itr); cout << S << '\n'; return 0; }