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.
st = str(raw_input())[:-1]
L = st.split()

for x in range(0,len(L)-1):
    print reduce(lambda x,y: x+y, [(L[x])[i] for i in range(len(L[x])-1,-1,-1)]),
print reduce(lambda x,y: x+y, [(L[len(L)-1])[i] for i in range(len(L[len(L)-1])-1,-1,-1)])+"."