for h in sorted([int(input()) for i in range(10)], reverse=True)[0:3]:
    print(h) for h in sorted([int(input()) for i in range(10)], reverse=True)[0:3]:
    print(h) h sorted([int(input()) for i in range(10)], reverse=True)[0:3] ([int(input()) for i in range(10)], reverse=True) sorted [int(input()) for i in range(10)] reverse=True reverse True 0:3 0 3 print(h) print h
for h in sorted([int(input()) for i in range(10)], reverse=True)[0:3]:
    print(h)