## initializing the string
string = "I am a python programmer"

words = string.split()

words = list(reversed(words))

print(" ".join(words))