a = [input() for i in range(10)]
print max(a)
b = max(a)
a.remove(b)
print max(a)
b = max(a)
a.remove(b)
print max(a) input() for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) input() input a = [input() for i in range(10)] a [input() for i in range(10)] print max(a) max a b = max(a) b max(a) max a a.remove(b) a.remove a remove b print max(a) max a b = max(a) b max(a) max a a.remove(b) a.remove a remove b print max(a) max a a = [input() for i in range(10)] [input() for i in range(10)] a b = max(a) max(a) b b = max(a) max(a) b
a = [input() for i in range(10)]
print max(a)
b = max(a)
a.remove(b)
print max(a)
b = max(a)
a.remove(b)
print max(a)