def main():
    a = []
    for i in range(10):
        a.append(int(input()))

    a.sort()
    a.reverse()

    for i in range(3):
        print(a[i])

if __name__ == '__main__':
    main() def main():
    a = []
    for i in range(10):
        a.append(int(input()))

    a.sort()
    a.reverse()

    for i in range(3):
        print(a[i]) main a = [] a [] for i in range(10):
        a.append(int(input()))

     i range(10) range 10 a.append(int(input())) a.append a append int(input()) int input() input a.sort() a.sort a sort a.reverse() a.reverse a reverse for i in range(3):
        print(a[i]) i range(3) range 3 print(a[i]) print a[i] a i if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    a = []
    for i in range(10):
        a.append(int(input()))

    a.sort()
    a.reverse()

    for i in range(3):
        print(a[i]) def main():
    a = []
    for i in range(10):
        a.append(int(input()))

    a.sort()
    a.reverse()

    for i in range(3):
        print(a[i]) main
def main():
    a = []
    for i in range(10):
        a.append(int(input()))

    a.sort()
    a.reverse()

    for i in range(3):
        print(a[i])

if __name__ == '__main__':
    main()