lis=[]
for i in range(10):
  lis.append(int(input()))
 
for i in sorted(lis,reverse=True)[:3]:
  print(i) lis=[] lis [] for i in range(10):
  lis.append(int(input()))
  i range(10) range 10 lis.append(int(input())) lis.append lis append int(input()) int input() input for i in sorted(lis,reverse=True)[:3]:
  print(i) i sorted(lis,reverse=True)[:3] (lis,reverse=True) sorted lis reverse=True reverse True :3 3 print(i) print i lis=[] [] lis
lis=[]
for i in range(10):
  lis.append(int(input()))
 
for i in sorted(lis,reverse=True)[:3]:
  print(i)