if __name__ == "__main__":
    a = []
    for i in range(0,10):
        val = input()
        a.append(int(val))

    a.sort()
    a.reverse()
    for i in range(0,3):
        print(a[i]) if __name__ == "__main__":
    a = []
    for i in range(0,10):
        val = input()
        a.append(int(val))

    a.sort()
    a.reverse()
    for i in range(0,3):
        print(a[i]) __name__ == "__main__" __name__ "__main__" a = [] a [] for i in range(0,10):
        val = input()
        a.append(int(val))

     i range(0,10) range 0 10 val = input() val input() input a.append(int(val)) a.append a append int(val) int val a.sort() a.sort a sort a.reverse() a.reverse a reverse for i in range(0,3):
        print(a[i]) i range(0,3) range 0 3 print(a[i]) print a[i] a i val = input() input() val a = [] [] a
if __name__ == "__main__":
    a = []
    for i in range(0,10):
        val = input()
        a.append(int(val))

    a.sort()
    a.reverse()
    for i in range(0,3):
        print(a[i])