x=sorted([input() for _ in range(10)],reverse=True)[0:3]
for y in x:
    print y input() for _ in range(10) for _ in range(10) _ range(10) range 10 for _ in range(10) input() input x=sorted([input() for _ in range(10)],reverse=True)[0:3] x sorted([input() for _ in range(10)],reverse=True)[0:3] ([input() for _ in range(10)],reverse=True) sorted [input() for _ in range(10)] reverse=True reverse True 0:3 0 3 for y in x:
    print y y x print x=sorted([input() for _ in range(10)],reverse=True)[0:3] sorted([input() for _ in range(10)],reverse=True)[0:3] x
x=sorted([input() for _ in range(10)],reverse=True)[0:3]
for y in x:
    print y