//config = {stdin: 'tmp', newline: '\r\n'}; // win
config = {stdin: '/dev/stdin', newline: '\n'}; // linux

line = require('fs').readFileSync(config.stdin, 'ascii')
	.trim()
	.split(config.newline)
	.map(Number);
line.sort(function (a, b) { return b - a; });

console.log(line.slice(0, 3).join('\n'));