a = []
for i in range(10) :
  a.append(int(input()))

a.sort()
a.reverse()
print("%d\n%d\n%d" % (a[0], a[1], a[2])) a = [] a [] for i in range(10) :
  a.append(int(input())) i range(10) range 10 a.append(int(input())) a.append a append int(input()) int input() input a.sort() a.sort a sort a.reverse() a.reverse a reverse print("%d\n%d\n%d" % (a[0], a[1], a[2])) print "%d\n%d\n%d" % (a[0], a[1], a[2]) "%d\n%d\n%d" (a[0], a[1], a[2]) a[0] a 0 a[1] a 1 a[2] a 2 a = [] [] a
a = []
for i in range(10) :
  a.append(int(input()))

a.sort()
a.reverse()
print("%d\n%d\n%d" % (a[0], a[1], a[2]))