import re def my_function(in_str): res = re.findall("[a-zA-Z]+", in_str) return " ".join(reversed(res)) print(my_function(input()))
import re def my_function(in_str): res = re.findall("[a-zA-Z]+", in_str) return " ".join(reversed(res)) print(my_function(input()))