from sys import stdin

for x in sorted([int(l) for l in stdin],reverse=True)[0:3]:
  print(x) from sys import stdin for x in sorted([int(l) for l in stdin],reverse=True)[0:3]:
  print(x) x sorted([int(l) for l in stdin],reverse=True)[0:3] ([int(l) for l in stdin],reverse=True) sorted [int(l) for l in stdin] reverse=True reverse True 0:3 0 3 print(x) print x
from sys import stdin

for x in sorted([int(l) for l in stdin],reverse=True)[0:3]:
  print(x)