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

h = [int(input()) for i in range(10)]
h.sort()
h.reverse()

print(h[0])
print(h[1])
print(h[2]) int(input()) for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) int(input()) int input() input h = [int(input()) for i in range(10)] h [int(input()) for i in range(10)] h.sort() h.sort h sort h.reverse() h.reverse h reverse print(h[0]) print h[0] h 0 print(h[1]) print h[1] h 1 print(h[2]) print h[2] h 2 h = [int(input()) for i in range(10)] [int(input()) for i in range(10)] h
#!/usr/bin/env python
# -*- coding: utf-8 -*-

h = [int(input()) for i in range(10)]
h.sort()
h.reverse()

print(h[0])
print(h[1])
print(h[2])