2023032153 - 字符串倒置

编写一个程序,读取一个长度不超过 100 个字符的字符串,并将其内容按照逆序(从后往前)的形式输出。

Input

输入包含一行,为一个长度小于等于 100 的字符串。字符串中可能包含空格、标点符号或其他可见字符。

Output

输出该字符串倒序后的结果。

Examples

Input

waka!

Output

!akaw

Input

Hello World

Output

dlroW olleH

Input

nihao

Output

oahin

Hint

在处理输入时,请注意字符串可能包含空格。如果使用 C++,建议使用 getline(cin, s);如果使用 C 语言,建议使用 gets() 或 fgets()。

Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题