height_list = []
for i in range(10):
    height_list.append(input())
height_list.sort()
height_list.reverse()

for height in height_list[:3]:
    print height height_list = [] height_list [] for i in range(10):
    height_list.append(input()) i range(10) range 10 height_list.append(input()) height_list.append height_list append input() input height_list.sort() height_list.sort height_list sort height_list.reverse() height_list.reverse height_list reverse for height in height_list[:3]:
    print height height height_list[:3] height_list :3 3 print height_list = [] [] height_list
height_list = []
for i in range(10):
    height_list.append(input())
height_list.sort()
height_list.reverse()

for height in height_list[:3]:
    print height