import std.stdio,std.string,std.conv,std.algorithm;
void main(){
	int inte;
	int[] ins;
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	ins ~= to!int(chomp(readln()));
	
	sort!("a > b")(ins);
	writeln( ins[0] );
	writeln( ins[1] );
	writeln( ins[2] );
}