mounts =[int(input()) for i in range(10)]
mounts.sort(reverse = True)
for i in range(3):
  print(mounts[i]) int(input()) for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) int(input()) int input() input mounts =[int(input()) for i in range(10)] mounts [int(input()) for i in range(10)] mounts.sort(reverse = True) mounts.sort mounts sort reverse = True reverse True for i in range(3):
  print(mounts[i]) i range(3) range 3 print(mounts[i]) print mounts[i] mounts i mounts =[int(input()) for i in range(10)] [int(input()) for i in range(10)] mounts
mounts =[int(input()) for i in range(10)]
mounts.sort(reverse = True)
for i in range(3):
  print(mounts[i])