var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split("\n").map(Number);
Arr.sort(function(a,b){return b-a;});
console.log(Arr[0]);
console.log(Arr[1]);
console.log(Arr[2]);