a = []
for i in range(10):
    a.append(input())
a = sorted(a, key=int, reverse=True)
for i in a[0:3]:
    print(i) a = [] a [] for i in range(10):
    a.append(input()) i range(10) range 10 a.append(input()) a.append a append input() input a = sorted(a, key=int, reverse=True) a sorted(a, key=int, reverse=True) sorted a key=int key int reverse=True reverse True for i in a[0:3]:
    print(i) i a[0:3] a 0:3 0 3 print(i) print i a = sorted(a, key=int, reverse=True) sorted(a, key=int, reverse=True) a a = [] [] a
a = []
for i in range(10):
    a.append(input())
a = sorted(a, key=int, reverse=True)
for i in a[0:3]:
    print(i)