i = 0
x = []
for i in range(10):
    mount = int(input())
    x.append(mount)
sorted_x = sorted(x)
print(sorted_x[-1])
print(sorted_x[-2])
print(sorted_x[-3])
 i = 0 i 0 x = [] x [] for i in range(10):
    mount = int(input())
    x.append(mount) i range(10) range 10 mount = int(input()) mount int(input()) int input() input x.append(mount) x.append x append mount sorted_x = sorted(x) sorted_x sorted(x) sorted x print(sorted_x[-1]) print sorted_x[-1] sorted_x -1 print(sorted_x[-2]) print sorted_x[-2] sorted_x -2 print(sorted_x[-3]) print sorted_x[-3] sorted_x -3 mount = int(input()) int(input()) mount sorted_x = sorted(x) sorted(x) sorted_x i = 0 0 i x = [] [] x
i = 0
x = []
for i in range(10):
    mount = int(input())
    x.append(mount)
sorted_x = sorted(x)
print(sorted_x[-1])
print(sorted_x[-2])
print(sorted_x[-3])

