#P408. 【例70.3】 单词翻转

【例70.3】 单词翻转

Description

Input a sentence (one line), and output the sentence with each word reversed.

Input Format

Only one line containing a string with no more than 500500 characters. Words are separated by spaces. Note that there may be spaces at the beginning and end of the string.

Output Format

The string with each word reversed, maintaining the same spacing as the original text.

Sample

hello world
olleh dlrow