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