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