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.
s=raw_input().split()
a=s[:len(s)-1]
for i in a:
    print i[::-1],
x=s[-1]
x=x.replace('.','')
x=x[::-1]+'.'
print x