words = input().strip().split() new_string = '' for i in range(len(words)-1,-1,-1): new_string = new_string +' '+ words[i] print(new_string.strip())
words = input().strip().split() new_string = '' for i in range(len(words)-1,-1,-1): new_string = new_string +' '+ words[i] print(new_string.strip())