var lines = [];

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on( 'data', ( chunk ) => {
  lines.push( chunk );
});
process.stdin.on( 'end', main );

function main()
{
  lines.map( parseFloat ).sort( (a,b) => b-a ).slice( 0, 3 ).forEach( v => console.log(v) );

  return;
}