let sample_input = require('fs').readFileSync('/dev/stdin', 'utf8');

var hills = (sample_input.trim()).split("\n").map(Number);
hills.sort(function(a,b){return b-a;});
console.log(hills.slice(0,3).join("\n"));
