def main():
    l = []
    for _ in range(10):
        l.append(int(input()))
    l = sorted(l, reverse=True)
    for i in range(3):
        print(l[i])
    return None

if __name__ == '__main__':
    main() def main():
    l = []
    for _ in range(10):
        l.append(int(input()))
    l = sorted(l, reverse=True)
    for i in range(3):
        print(l[i])
    return None main l = [] l [] for _ in range(10):
        l.append(int(input()))
     _ range(10) range 10 l.append(int(input())) l.append l append int(input()) int input() input l = sorted(l, reverse=True) l sorted(l, reverse=True) sorted l reverse=True reverse True for i in range(3):
        print(l[i])
     i range(3) range 3 print(l[i]) print l[i] l i return None None if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    l = []
    for _ in range(10):
        l.append(int(input()))
    l = sorted(l, reverse=True)
    for i in range(3):
        print(l[i])
    return None def main():
    l = []
    for _ in range(10):
        l.append(int(input()))
    l = sorted(l, reverse=True)
    for i in range(3):
        print(l[i])
    return None main
def main():
    l = []
    for _ in range(10):
        l.append(int(input()))
    l = sorted(l, reverse=True)
    for i in range(3):
        print(l[i])
    return None

if __name__ == '__main__':
    main()