lis = []

for i in range(10):

 lis.append(eval(input()))

for a in sorted(lis,reverse=True)[:3]:

 print(a)


def main():

    arr = []

    for i in range(0,10):

       arr.append(eval(input())) 

    arr.sort()

    arr.reverse()

    for i in range(0,3):

        print(arr[i])



if __name__ == '__main__':

    main()
lis = []
for i in range(10):
    lis.append(eval(input()))
for a in sorted(lis, reverse=True)[:3]:
    print(a)

def main():
    arr = []
    for i in range(0, 10):
        arr.append(eval(input()))
    arr.sort()
    arr.reverse()
    for i in range(0, 3):
        print(arr[i])


if __name__ == "__main__":
    main()

-lis = [] -for i in range(10): -    lis.append(eval(input())) -for a in sorted(lis, reverse=True)[:3]: -    print(a) +def main(): +    arr = [] +    for i in range(0, 10): +        arr.append(eval(input())) +    arr.sort() +    arr.reverse() +    for i in range(0, 3): +        print(arr[i]) + + +if __name__ == "__main__": +    main()