5692: 单词翻转

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:17 Solved:1

Description



输入一个句子(一行),将句子中的每一个单词翻转后输出。

Input

只有一行,为一个字符串,不超过500个字符,单词之间仅有一个空格隔开,无需考虑逗号,句号问题。

Output

翻转每一个单词后的字符串,单词之间的空格需与原文一致。

Sample Input Copy

hello world

Sample Output Copy

olleh dlrow

Source/Category