function Main(input){
  var heights = input.split('\n').map(parseFloat);
  var results = heights.sort(function(value1, value2) {return value1 > value2;}).slice(0,3);
  console.log(results.join('\n');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));