#!/usr/bin/env python
# -*- coding: utf-8 -*-

m = []
for i in range(0,10):
    m.append(int(input()))

for i in range(0,3):
    print(list(reversed(sorted(m)))[i]) m = [] m [] for i in range(0,10):
    m.append(int(input())) i range(0,10) range 0 10 m.append(int(input())) m.append m append int(input()) int input() input for i in range(0,3):
    print(list(reversed(sorted(m)))[i]) i range(0,3) range 0 3 print(list(reversed(sorted(m)))[i]) print list(reversed(sorted(m)))[i] (reversed(sorted(m))) list reversed(sorted(m)) reversed sorted(m) sorted m i m = [] [] m
#!/usr/bin/env python
# -*- coding: utf-8 -*-

m = []
for i in range(0,10):
    m.append(int(input()))

for i in range(0,3):
    print(list(reversed(sorted(m)))[i])