N=10
A=[int(input()) for i in range(N)]
A.sort(reverse=True)
for i in range(3):
    print(A[i]) N=10 N 10 int(input()) for i in range(N) for i in range(N) i range(N) range N for i in range(N) int(input()) int input() input A=[int(input()) for i in range(N)] A [int(input()) for i in range(N)] A.sort(reverse=True) A.sort A sort reverse=True reverse True for i in range(3):
    print(A[i]) i range(3) range 3 print(A[i]) print A[i] A i A=[int(input()) for i in range(N)] [int(input()) for i in range(N)] A N=10 10 N
N=10
A=[int(input()) for i in range(N)]
A.sort(reverse=True)
for i in range(3):
    print(A[i])