a = list(reversed(sorted([int(raw_input()) for _ in range(10)])))
print a[0]
print a[1]
print a[2] int(raw_input()) for _ in range(10) for _ in range(10) _ range(10) range 10 for _ in range(10) int(raw_input()) int raw_input() raw_input a = list(reversed(sorted([int(raw_input()) for _ in range(10)]))) a list(reversed(sorted([int(raw_input()) for _ in range(10)]))) list reversed(sorted([int(raw_input()) for _ in range(10)])) reversed sorted([int(raw_input()) for _ in range(10)]) sorted [int(raw_input()) for _ in range(10)] print a[0] a 0 print a[1] a 1 print a[2] a 2 a = list(reversed(sorted([int(raw_input()) for _ in range(10)]))) list(reversed(sorted([int(raw_input()) for _ in range(10)]))) a
a = list(reversed(sorted([int(raw_input()) for _ in range(10)])))
print a[0]
print a[1]
print a[2]