a=[]
for i in range(10):
    num = int(input())
    a.append(num)
a=sorted(a)
for i in range(3):
    print('{0}'.format(a[9-i])) a=[] a [] for i in range(10):
    num = int(input())
    a.append(num) i range(10) range 10 num = int(input()) num int(input()) int input() input a.append(num) a.append a append num a=sorted(a) a sorted(a) sorted a for i in range(3):
    print('{0}'.format(a[9-i])) i range(3) range 3 print('{0}'.format(a[9-i])) print '{0}'.format(a[9-i]) '{0}'.format '{0}' format a[9-i] a 9-i 9 i a=[] [] a a=sorted(a) sorted(a) a num = int(input()) int(input()) num
a=[]
for i in range(10):
    num = int(input())
    a.append(num)
a=sorted(a)
for i in range(3):
    print('{0}'.format(a[9-i]))