nums = list(input().split()) output = nums[1:] #取第二个到最后一个数字 output.reverse() #翻转数列 print(" ".join(output))