import sys

a = sorted([int(x) for x in sys.stdin.readlines()], reverse=True)
for i in range(3):
    print(a[i]) import sys sys int(x) for x in sys.stdin.readlines() for x in sys.stdin.readlines() x sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for x in sys.stdin.readlines() int(x) int x a = sorted([int(x) for x in sys.stdin.readlines()], reverse=True) a sorted([int(x) for x in sys.stdin.readlines()], reverse=True) sorted [int(x) for x in sys.stdin.readlines()] reverse=True reverse True for i in range(3):
    print(a[i]) i range(3) range 3 print(a[i]) print a[i] a i a = sorted([int(x) for x in sys.stdin.readlines()], reverse=True) sorted([int(x) for x in sys.stdin.readlines()], reverse=True) a
import sys

a = sorted([int(x) for x in sys.stdin.readlines()], reverse=True)
for i in range(3):
    print(a[i])