	var input = require("fs").readFileSync("/dev/stdin", "utf8");
	var heigths = input.trim().split("\n");
var n = heigths.sort(compareNumbers);

for (i=0; i!=3; i++) {
	console.log (n[i]);
}

function compareNumbers(a, b) {
	return b - a;
}