var Mountains = {
  mountain_input: function() {
    var mountain = [];
    var input = require('fs').readFileSync('/dev/stdin', 'utf8');
    input.trim().split('\n').forEach(function(line){
      mountain.push(parseInt(line));
    });  
    return mountain;
  },
  sort: function() {
    var data = this.mountain_input();
    data.sort(function(a,b){return a - b;});
    for(k=data.length -1; k >= data.length-3; k--) {
      console.log(data[k]);
    }
    return true;
  }
}
Mountains.sort();