def main():
    N=10
    l = list()
    for i in range(N):
        l.append(int(input()))
    l.sort(reverse=True)
    for x in l[:3]:
        print(x)

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

if __name__=='__main__':
    main()