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.
ans=[]
while True:
	try:
		s=raw_input()
		l=[]
		l=s.split()
		for i in l:
			i=i[::-1]
			ans.append(i)
	except EOFError:
		break
for i in ans:
	if i[0]==".":
		i=i.replace(".","")
		print i+".",
	else:
		print i,