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

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

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

if __name__ == '__main__':
    main()