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