process.stdin.resume();
process.stdin.setEncoding('utf8');

// Get lines from standard input.
var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var lines = input.split('\n');
var number_of_hills_to_output = 3;

// Sort numerically greatest first.
lines.sort(function(a, b) {
  return b - a;
});

// Print the output
for (var counter = 0; counter < number_of_hills_to_output; counter++){
console.log(lines[counter]);
}