# coding: utf-8
# Here your code !

mount = [int(input()) for i in range(10)]
a = max(mount)
mount.remove(a)
b = max(mount)
mount.remove(b)
print(a)
print(b)
print(max(mount)) 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 mount = [int(input()) for i in range(10)] mount [int(input()) for i in range(10)] a = max(mount) a max(mount) max mount mount.remove(a) mount.remove mount remove a b = max(mount) b max(mount) max mount mount.remove(b) mount.remove mount remove b print(a) print a print(b) print b print(max(mount)) print max(mount) max mount mount = [int(input()) for i in range(10)] [int(input()) for i in range(10)] mount a = max(mount) max(mount) a b = max(mount) max(mount) b
# coding: utf-8
# Here your code !

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