import sys

a = []
for line in sys.stdin:
    a.append(int(line))
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2]) import sys sys a = [] a [] for line in sys.stdin:
    a.append(int(line)) line sys.stdin sys stdin a.append(int(line)) a.append a append int(line) int line a.sort() a.sort a sort a.reverse() a.reverse a reverse print(a[0]) print a[0] a 0 print(a[1]) print a[1] a 1 print(a[2]) print a[2] a 2 a = [] [] a
import sys

a = []
for line in sys.stdin:
    a.append(int(line))
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2])