import sys
l = []
for i in range(10):
    l.append(int(sys.stdin.readline().rstrip()))
for h in sorted(l,reverse=True)[:3]:
    print(h) import sys sys l = [] l [] for i in range(10):
    l.append(int(sys.stdin.readline().rstrip())) i range(10) range 10 l.append(int(sys.stdin.readline().rstrip())) l.append l append int(sys.stdin.readline().rstrip()) int sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip for h in sorted(l,reverse=True)[:3]:
    print(h) h sorted(l,reverse=True)[:3] (l,reverse=True) sorted l reverse=True reverse True :3 3 print(h) print h l = [] [] l
import sys
l = []
for i in range(10):
    l.append(int(sys.stdin.readline().rstrip()))
for h in sorted(l,reverse=True)[:3]:
    print(h)