def main():
    m = []
    for _ in range(10):
        m.append(int(input()))

    m.sort(reverse = True)

    for i in range(3):
        print(m[i])

if __name__ == "__main__":
    main() def main():
    m = []
    for _ in range(10):
        m.append(int(input()))

    m.sort(reverse = True)

    for i in range(3):
        print(m[i]) main m = [] m [] for _ in range(10):
        m.append(int(input()))

     _ range(10) range 10 m.append(int(input())) m.append m append int(input()) int input() input m.sort(reverse = True) m.sort m sort reverse = True reverse True for i in range(3):
        print(m[i]) i range(3) range 3 print(m[i]) print m[i] m i if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    m = []
    for _ in range(10):
        m.append(int(input()))

    m.sort(reverse = True)

    for i in range(3):
        print(m[i]) def main():
    m = []
    for _ in range(10):
        m.append(int(input()))

    m.sort(reverse = True)

    for i in range(3):
        print(m[i]) main
def main():
    m = []
    for _ in range(10):
        m.append(int(input()))

    m.sort(reverse = True)

    for i in range(3):
        print(m[i])

if __name__ == "__main__":
    main()