import sys

data = sys.stdin.readline()
l = list()
while data:
    l.append(int(data))
    data = sys.stdin.readline()

for x in sorted(l,reverse=True)[:3]:
    print(x) import sys sys data = sys.stdin.readline() data sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline l = list() l list() list while data:
    l.append(int(data))
    data = sys.stdin.readline() data l.append(int(data)) l.append l append int(data) int data data = sys.stdin.readline() data sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline for x in sorted(l,reverse=True)[:3]:
    print(x) x sorted(l,reverse=True)[:3] (l,reverse=True) sorted l reverse=True reverse True :3 3 print(x) print x data = sys.stdin.readline() sys.stdin.readline() data l = list() list() l data = sys.stdin.readline() sys.stdin.readline() data
import sys

data = sys.stdin.readline()
l = list()
while data:
    l.append(int(data))
    data = sys.stdin.readline()

for x in sorted(l,reverse=True)[:3]:
    print(x)