import re
def my_func(in_str):
res = re.sub("[^a-zA-Z]", " ", in_str)
res = " ".join(res.split(" ")[::-1])
return res
while True:
try:
print(my_func(input()))
except (KeyboardInterrupt, EOFError):
break
def my_func(in_str):
res = re.sub("[^a-zA-Z]", " ", in_str)
res = " ".join(res.split(" ")[::-1])
return res
while True:
try:
print(my_func(input()))
except (KeyboardInterrupt, EOFError):
break