import std.stdio,std.string;
void main(){
	auto args = readstd!(int);
	args.sort.reverse;
	writeln( args[0] );
	writeln( args[1] );
	writeln( args[2] );
}
T[] readstd(T)(){
	import std.conv:to;
	T[] args;
	while(1){
		string arg = chomp(readln());
		if(arg){	args ~= to!T(arg);	}else{	break;	}
	}
	return args;
}