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.
def rev(St):
    return St[::-1]
 
s=raw_input()
words=map(rev,s.split(" "))
c=words[-1]
words.pop()
c=c.replace(".","")
words.append(c+".")
print " ".join(words)