hs=[int(input()) for i in range(10)]
h=sorted(hs,reverse=True)
for i in range(3):
  print(h[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 hs=[int(input()) for i in range(10)] hs [int(input()) for i in range(10)] h=sorted(hs,reverse=True) h sorted(hs,reverse=True) sorted hs reverse=True reverse True for i in range(3):
  print(h[i]) i range(3) range 3 print(h[i]) print h[i] h i hs=[int(input()) for i in range(10)] [int(input()) for i in range(10)] hs h=sorted(hs,reverse=True) sorted(hs,reverse=True) h
hs=[int(input()) for i in range(10)]
h=sorted(hs,reverse=True)
for i in range(3):
  print(h[i])
