def main():
    mountain=[]
    for i in range(10):
        num=int(input())
        mountain.append(num)
    mountain=sorted(mountain)
    mountain=mountain[::-1]
    for i in range(3):
        print(mountain[i])

if __name__=='__main__':
    main() def main():
    mountain=[]
    for i in range(10):
        num=int(input())
        mountain.append(num)
    mountain=sorted(mountain)
    mountain=mountain[::-1]
    for i in range(3):
        print(mountain[i]) main mountain=[] mountain [] for i in range(10):
        num=int(input())
        mountain.append(num)
     i range(10) range 10 num=int(input()) num int(input()) int input() input mountain.append(num) mountain.append mountain append num mountain=sorted(mountain) mountain sorted(mountain) sorted mountain mountain=mountain[::-1] mountain mountain[::-1] mountain ::-1 -1 for i in range(3):
        print(mountain[i]) i range(3) range 3 print(mountain[i]) print mountain[i] mountain i if __name__=='__main__':
    main() __name__=='__main__' __name__ '__main__' main() main def main():
    mountain=[]
    for i in range(10):
        num=int(input())
        mountain.append(num)
    mountain=sorted(mountain)
    mountain=mountain[::-1]
    for i in range(3):
        print(mountain[i]) def main():
    mountain=[]
    for i in range(10):
        num=int(input())
        mountain.append(num)
    mountain=sorted(mountain)
    mountain=mountain[::-1]
    for i in range(3):
        print(mountain[i]) main
def main():
    mountain=[]
    for i in range(10):
        num=int(input())
        mountain.append(num)
    mountain=sorted(mountain)
    mountain=mountain[::-1]
    for i in range(3):
        print(mountain[i])

if __name__=='__main__':
    main()