heights = list()
for i in range(10):
    heights.append(int(input()))
for height in list(reversed(sorted(heights)))[:3]:
    print(height) heights = list() heights list() list for i in range(10):
    heights.append(int(input())) i range(10) range 10 heights.append(int(input())) heights.append heights append int(input()) int input() input for height in list(reversed(sorted(heights)))[:3]:
    print(height) height list(reversed(sorted(heights)))[:3] (reversed(sorted(heights))) list reversed(sorted(heights)) reversed sorted(heights) sorted heights :3 3 print(height) print height heights = list() list() heights
heights = list()
for i in range(10):
    heights.append(int(input()))
for height in list(reversed(sorted(heights)))[:3]:
    print(height)