# -*- coding: UTF-8 -*-

lst = [int(raw_input()) for i in range(10)]
lst.sort()
lst.reverse()

print lst[0]
print lst[1]
print lst[2] int(raw_input()) for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) int(raw_input()) int raw_input() raw_input lst = [int(raw_input()) for i in range(10)] lst [int(raw_input()) for i in range(10)] lst.sort() lst.sort lst sort lst.reverse() lst.reverse lst reverse print lst[0] lst 0 print lst[1] lst 1 print lst[2] lst 2 lst = [int(raw_input()) for i in range(10)] [int(raw_input()) for i in range(10)] lst
# -*- coding: UTF-8 -*-

lst = [int(raw_input()) for i in range(10)]
lst.sort()
lst.reverse()

print lst[0]
print lst[1]
print lst[2]