#a=list(map(int,input().split()))
a=[]
for i in range(10):
    tmp = int(input())
    a.append(tmp)
b=sorted(a, reverse=True)
print(b[0])
print(b[1])
print(b[2]) a=[] a [] for i in range(10):
    tmp = int(input())
    a.append(tmp) i range(10) range 10 tmp = int(input()) tmp int(input()) int input() input a.append(tmp) a.append a append tmp b=sorted(a, reverse=True) b sorted(a, reverse=True) sorted a reverse=True reverse True print(b[0]) print b[0] b 0 print(b[1]) print b[1] b 1 print(b[2]) print b[2] b 2 a=[] [] a tmp = int(input()) int(input()) tmp b=sorted(a, reverse=True) sorted(a, reverse=True) b
#a=list(map(int,input().split()))
a=[]
for i in range(10):
    tmp = int(input())
    a.append(tmp)
b=sorted(a, reverse=True)
print(b[0])
print(b[1])
print(b[2])