4690 - 第六章 编程基础之字符串:单词翻转

通过次数

26

提交次数

60

Time Limit : 1 秒
Memory Limit : 128 MB

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

Input

只有一行,为一个字符串,不超过500个字符。单词之间以空格隔开。

Output

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

Examples

Input

hello world

Output

olleh dlrow