m=[]
for i in range(10):m.append(int(input()))
m.sort(reverse=True)
for i in range(3):print(m[i]) m=[] m [] for i in range(10):m.append(int(input())) i range(10) range 10 m.sort(reverse=True) m.sort m sort reverse=True reverse True for i in range(3):print(m[i]) i range(3) range 3 m=[] [] m
m=[]
for i in range(10):m.append(int(input()))
m.sort(reverse=True)
for i in range(3):print(m[i])
