var a = process.argv[2].split("\n").map(function(x) { return x - 0; });         
for (var i = 0; i < 3; i++) {                                                   
  console.log(a.splice(a.indexOf(Math.max.apply(null, a)), 1)[0]);              
} 