# encoding: utf-8                                                                                                                                                                

def main
  height = []
  while str = gets
    height << str.chomp.to_i
  end

  height.sort.reverse[0..2].each do |h|
    puts h
  end
end

main