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.
#!/usr/bin/env python

ALPHA  = ''.join(map(lambda x: chr(65 + x), range(26)))
ALPHA += ALPHA.lower()
ALPHA += ''.join(map(str, range(10)))

def main():
    while True:
        try:
            S = raw_input()
        except:
            break
        W = ''
        R = ''
        for c in S:
            if  c in ALPHA:
                W += c
            else:
                R += ''.join(reversed(W))
                R += c
                W  = ''
        if W:
                R += ''.join(reversed(W))
        print R

main()