# coding:utf-8
mountlist = []
for _ in range(10):
    height = int(input())
    mountlist.append(height)
mountlist.sort()
mountlist.reverse()
[print(x) for x in mountlist[:3]] mountlist = [] mountlist [] for _ in range(10):
    height = int(input())
    mountlist.append(height) _ range(10) range 10 height = int(input()) height int(input()) int input() input mountlist.append(height) mountlist.append mountlist append height mountlist.sort() mountlist.sort mountlist sort mountlist.reverse() mountlist.reverse mountlist reverse print(x) for x in mountlist[:3] for x in mountlist[:3] x mountlist[:3] mountlist :3 3 for x in mountlist[:3] print(x) print x [print(x) for x in mountlist[:3]] height = int(input()) int(input()) height mountlist = [] [] mountlist
# coding:utf-8
mountlist = []
for _ in range(10):
    height = int(input())
    mountlist.append(height)
mountlist.sort()
mountlist.reverse()
[print(x) for x in mountlist[:3]]