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