rank = [0] * 4
for _ in range(10):
    rank[0] = int(input())
    rank.sort()
for r in reversed(rank[1:]):
    print(r) rank = [0] * 4 rank [0] * 4 [0] 0 4 for _ in range(10):
    rank[0] = int(input())
    rank.sort() _ range(10) range 10 rank[0] = int(input()) rank[0] rank 0 int(input()) int input() input rank.sort() rank.sort rank sort for r in reversed(rank[1:]):
    print(r) r reversed(rank[1:]) reversed rank[1:] rank 1: 1 print(r) print r rank = [0] * 4 [0] * 4 rank
rank = [0] * 4
for _ in range(10):
    rank[0] = int(input())
    rank.sort()
for r in reversed(rank[1:]):
    print(r)