import sys

a = []
for i in sys.stdin:
    a.append(int(i.replace("\n", "")))
a.sort(reverse=True)
del a[3:]
print( "\n".join(map(str, a))) import sys sys a = [] a [] for i in sys.stdin:
    a.append(int(i.replace("\n", ""))) i sys.stdin sys stdin a.append(int(i.replace("\n", ""))) a.append a append int(i.replace("\n", "")) int i.replace("\n", "") i.replace i replace "\n" "" a.sort(reverse=True) a.sort a sort reverse=True reverse True del a[3:] a[3:] a 3: 3 print( "\n".join(map(str, a))) print "\n".join(map(str, a)) "\n".join "\n" join map(str, a) map str a a = [] [] a
import sys

a = []
for i in sys.stdin:
    a.append(int(i.replace("\n", "")))
a.sort(reverse=True)
del a[3:]
print( "\n".join(map(str, a)))