from sys import stdin
ns = [int(n) for n in stdin]
ns.sort(reverse = True)
for i in range(3):
  print(ns[i]) from sys import stdin int(n) for n in stdin for n in stdin n stdin for n in stdin int(n) int n ns = [int(n) for n in stdin] ns [int(n) for n in stdin] ns.sort(reverse = True) ns.sort ns sort reverse = True reverse True for i in range(3):
  print(ns[i]) i range(3) range 3 print(ns[i]) print ns[i] ns i ns = [int(n) for n in stdin] [int(n) for n in stdin] ns
from sys import stdin
ns = [int(n) for n in stdin]
ns.sort(reverse = True)
for i in range(3):
  print(ns[i])