f=str(input()).split() print(f[0], f[1], ''.join([str(f[j])+' ' for j in range(len(f), 0, -1) if (j>1 and j