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

max1 = max(h)
h.remove(max1)
max2 = max(h)
h.remove(max2)
max3 = max(h)

print(max1)
print(max2)
print(max3) h = [] h [] for i in range(10):
    h.append(int(input())) i range(10) range 10 h.append(int(input())) h.append h append int(input()) int input() input max1 = max(h) max1 max(h) max h h.remove(max1) h.remove h remove max1 max2 = max(h) max2 max(h) max h h.remove(max2) h.remove h remove max2 max3 = max(h) max3 max(h) max h print(max1) print max1 print(max2) print max2 print(max3) print max3 max3 = max(h) max(h) max3 max2 = max(h) max(h) max2 h = [] [] h max1 = max(h) max(h) max1
h = []
for i in range(10):
    h.append(int(input()))

max1 = max(h)
h.remove(max1)
max2 = max(h)
h.remove(max2)
max3 = max(h)

print(max1)
print(max2)
print(max3)