arr = list([input() for _ in range(10)])
  
arr.sort(reverse=True)
 
for i in range(3):
    print arr[i] input() for _ in range(10) for _ in range(10) _ range(10) range 10 for _ in range(10) input() input arr = list([input() for _ in range(10)]) arr list([input() for _ in range(10)]) list [input() for _ in range(10)] arr.sort(reverse=True) arr.sort arr sort reverse=True reverse True for i in range(3):
    print arr[i] i range(3) range 3 print arr[i] arr i arr = list([input() for _ in range(10)]) list([input() for _ in range(10)]) arr
arr = list([input() for _ in range(10)])
  
arr.sort(reverse=True)
 
for i in range(3):
    print arr[i]
