height = []
for i in range(10):
    height.append(input())
height.sort(reverse=True)
for i in range(3):
    print(height[i]) height = [] height [] for i in range(10):
    height.append(input()) i range(10) range 10 height.append(input()) height.append height append input() input height.sort(reverse=True) height.sort height sort reverse=True reverse True for i in range(3):
    print(height[i]) i range(3) range 3 print(height[i]) print height[i] height i height = [] [] height
height = []
for i in range(10):
    height.append(input())
height.sort(reverse=True)
for i in range(3):
    print(height[i])