a = [0]
for i in range(10):
    if i == 0:
        a[0] = input()
    else:
        a.append(input())
else:
    a.sort()
    a.reverse()
    print a[0]
    print a[1]
    print a[2] a = [0] a [0] 0 for i in range(10):
    if i == 0:
        a[0] = input()
    else:
        a.append(input())
else:
    a.sort()
    a.reverse()
    print a[0]
    print a[1]
    print a[2] i range(10) range 10 if i == 0:
        a[0] = input()
    else:
        a.append(input()) i == 0 i 0 a[0] = input() a[0] a 0 input() input a.append(input()) a.append a append input() input a.sort() a.sort a sort a.reverse() a.reverse a reverse print a[0] a 0 print a[1] a 1 print a[2] a 2 a = [0] [0] a
a = [0]
for i in range(10):
    if i == 0:
        a[0] = input()
    else:
        a.append(input())
else:
    a.sort()
    a.reverse()
    print a[0]
    print a[1]
    print a[2]