
arr = list([])

for i in range(10):
    arr.append(int(input()))

arr.sort(reverse=True)

for i in range(3):
    print arr[i] arr = list([]) arr list([]) list [] for i in range(10):
    arr.append(int(input())) i range(10) range 10 arr.append(int(input())) arr.append arr append int(input()) int input() input arr.sort(reverse=True) arr.sort arr sort reverse=True reverse True for i in range(3):
    print arr[i] i range(3) range 3 print arr[i] arr i arr = list([]) list([]) arr

arr = list([])

for i in range(10):
    arr.append(int(input()))

arr.sort(reverse=True)

for i in range(3):
    print arr[i]
