(function main( input )
{
  var lines = input.trim().split('\n');
  
  lines.map(Number).sort( function(a,b){ return b-a; } ).slice( 0, 3 ).forEach( v => console.log(v) );
})( require('fs').readFileSync( '/dev/stdin', 'utf8' ) );