height =[]
inp = ""
for i in range(0,10):
    inp = input()
    height.append(int(inp))
height.sort(reverse=True)
for i in range(0,3):
    print(str(height[i])) height =[] height [] inp = "" inp "" for i in range(0,10):
    inp = input()
    height.append(int(inp)) i range(0,10) range 0 10 inp = input() inp input() input height.append(int(inp)) height.append height append int(inp) int inp height.sort(reverse=True) height.sort height sort reverse=True reverse True for i in range(0,3):
    print(str(height[i])) i range(0,3) range 0 3 print(str(height[i])) print str(height[i]) str height[i] height i height =[] [] height inp = input() input() inp inp = "" "" inp
height =[]
inp = ""
for i in range(0,10):
    inp = input()
    height.append(int(inp))
height.sort(reverse=True)
for i in range(0,3):
    print(str(height[i]))