import sys

a = []
for line in sys.stdin:
    a.append(int(line))
b = [0, 0, 0]
for i in a:
	j = 0
	while j < 3:
		if i > b[j]:
			b.insert(j, i)
			break
		j += 1

for i in b[:3]:
	print i 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 b = [0, 0, 0] b [0, 0, 0] 0 0 0 for i in a:
	j = 0
	while j < 3:
		if i > b[j]:
			b.insert(j, i)
			break
		j += 1 i a j = 0 j 0 while j < 3:
		if i > b[j]:
			b.insert(j, i)
			break
		j += 1 j < 3 j 3 if i > b[j]:
			b.insert(j, i)
			break
		 i > b[j] i b[j] b j b.insert(j, i) b.insert b insert j i break j += 1 j 1 for i in b[:3]:
	print i i b[:3] b :3 3 print a = [] [] a j += 1 1 j j = 0 0 j b = [0, 0, 0] [0, 0, 0] b
import sys

a = []
for line in sys.stdin:
    a.append(int(line))
b = [0, 0, 0]
for i in a:
	j = 0
	while j < 3:
		if i > b[j]:
			b.insert(j, i)
			break
		j += 1

for i in b[:3]:
	print i