inputList = []
while True:
    try:
        num = int(input())
    except EOFError:
        break
    inputList.append(num)

inputList.sort()
length = len(inputList)
for i in range(3):
    print(inputList[length - i - 1]) inputList = [] inputList [] while True:
    try:
        num = int(input())
    except EOFError:
        break
    inputList.append(num) True try:
        num = int(input())
    except EOFError:
        break
     except EOFError:
        break
     break num = int(input()) num int(input()) int input() input inputList.append(num) inputList.append inputList append num inputList.sort() inputList.sort inputList sort length = len(inputList) length len(inputList) len inputList for i in range(3):
    print(inputList[length - i - 1]) i range(3) range 3 print(inputList[length - i - 1]) print inputList[length - i - 1] inputList length - i - 1 length - i length i 1 inputList = [] [] inputList num = int(input()) int(input()) num length = len(inputList) len(inputList) length
inputList = []
while True:
    try:
        num = int(input())
    except EOFError:
        break
    inputList.append(num)

inputList.sort()
length = len(inputList)
for i in range(3):
    print(inputList[length - i - 1])