题目描述
Given a string of letters in the input, return a string in the output with each words written in reverse order. Spaces and punctuations must not change their position. Numbers may be present in a string. The end of the string will have a "." without the quotes.
Input
Input string
Output
Output String
Example
Input:
Welcome to NITMASFEST.
Output:
emocleW ot TSEFSAMTIN.
输入格式
见题面
输出格式
见题面
样例输入
Welcome to NITMASFEST.
样例输出
emocleW ot TSEFSAMTIN.