# coding: utf-8

def getint():
    return int(input().rstrip())

def main():
    ls = []
    num_of_mount = 10
    num_of_top = 3
    
    for i in range(num_of_mount):
        ls.append(getint())

    ls.sort(reverse=True)

    for i in range(num_of_top):
        print(ls[i])

if __name__ == '__main__':
    main() def getint():
    return int(input().rstrip()) getint return int(input().rstrip()) int(input().rstrip()) int input().rstrip() ().rstrip () input rstrip def main():
    ls = []
    num_of_mount = 10
    num_of_top = 3
    
    for i in range(num_of_mount):
        ls.append(getint())

    ls.sort(reverse=True)

    for i in range(num_of_top):
        print(ls[i]) main ls = [] ls [] num_of_mount = 10 num_of_mount 10 num_of_top = 3 num_of_top 3 for i in range(num_of_mount):
        ls.append(getint())

     i range(num_of_mount) range num_of_mount ls.append(getint()) ls.append ls append getint() getint ls.sort(reverse=True) ls.sort ls sort reverse=True reverse True for i in range(num_of_top):
        print(ls[i]) i range(num_of_top) range num_of_top print(ls[i]) print ls[i] ls i if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    ls = []
    num_of_mount = 10
    num_of_top = 3
    
    for i in range(num_of_mount):
        ls.append(getint())

    ls.sort(reverse=True)

    for i in range(num_of_top):
        print(ls[i]) def main():
    ls = []
    num_of_mount = 10
    num_of_top = 3
    
    for i in range(num_of_mount):
        ls.append(getint())

    ls.sort(reverse=True)

    for i in range(num_of_top):
        print(ls[i]) main def getint():
    return int(input().rstrip()) def getint():
    return int(input().rstrip()) getint
# coding: utf-8

def getint():
    return int(input().rstrip())

def main():
    ls = []
    num_of_mount = 10
    num_of_top = 3
    
    for i in range(num_of_mount):
        ls.append(getint())

    ls.sort(reverse=True)

    for i in range(num_of_top):
        print(ls[i])

if __name__ == '__main__':
    main()