#coding:UTF-8
def LoT(List):
    List2=sorted(List)
    for i in range(3):
        print(List2[len(List)-1-i])
if __name__=="__main__":
    List=[]
    for i in range(10):
        List.append(int(input()))
    LoT(List) def LoT(List):
    List2=sorted(List)
    for i in range(3):
        print(List2[len(List)-1-i]) LoT List2=sorted(List) List2 sorted(List) sorted List for i in range(3):
        print(List2[len(List)-1-i]) i range(3) range 3 print(List2[len(List)-1-i]) print List2[len(List)-1-i] List2 len(List)-1-i len(List)-1 len(List) len List 1 i List List if __name__=="__main__":
    List=[]
    for i in range(10):
        List.append(int(input()))
    LoT(List) __name__=="__main__" __name__ "__main__" List=[] List [] for i in range(10):
        List.append(int(input()))
     i range(10) range 10 List.append(int(input())) List.append List append int(input()) int input() input LoT(List) LoT List def LoT(List):
    List2=sorted(List)
    for i in range(3):
        print(List2[len(List)-1-i]) def LoT(List):
    List2=sorted(List)
    for i in range(3):
        print(List2[len(List)-1-i]) LoT List=[] [] List
#coding:UTF-8
def LoT(List):
    List2=sorted(List)
    for i in range(3):
        print(List2[len(List)-1-i])
if __name__=="__main__":
    List=[]
    for i in range(10):
        List.append(int(input()))
    LoT(List)