a = []
for i in range(10):
    a.append(int(input()))
a.sort()
print("\n".join(list(map(str,a[9:6:-1])))) a = [] a [] for i in range(10):
    a.append(int(input())) i range(10) range 10 a.append(int(input())) a.append a append int(input()) int input() input a.sort() a.sort a sort print("\n".join(list(map(str,a[9:6:-1])))) print "\n".join(list(map(str,a[9:6:-1]))) "\n".join "\n" join list(map(str,a[9:6:-1])) list map(str,a[9:6:-1]) map str a[9:6:-1] a 9:6:-1 9 6 -1 a = [] [] a
a = []
for i in range(10):
    a.append(int(input()))
a.sort()
print("\n".join(list(map(str,a[9:6:-1]))))