# coding: utf-8
# Here your code !

import sys

n = [int(input()) for i in range (1,11)] 
#t = [int(input()) for i in range(n)] 
n.sort()
n.reverse()

for j in range (0,3):
    print(n[j]) import sys sys int(input()) for i in range (1,11) for i in range (1,11) i range (1,11) range 1 11 for i in range (1,11) int(input()) int input() input n = [int(input()) for i in range (1,11)] n [int(input()) for i in range (1,11)] n.sort() n.sort n sort n.reverse() n.reverse n reverse for j in range (0,3):
    print(n[j]) j range (0,3) range 0 3 print(n[j]) print n[j] n j n = [int(input()) for i in range (1,11)] [int(input()) for i in range (1,11)] n
# coding: utf-8
# Here your code !

import sys

n = [int(input()) for i in range (1,11)] 
#t = [int(input()) for i in range(n)] 
n.sort()
n.reverse()

for j in range (0,3):
    print(n[j])