// Basic module set for Programming Contest
import std.array, std.conv;
import std.stdio, std.string;
import std.range, std.random;
import std.algorithm;

void main()
{
	short[] mountHeight;
	foreach(i; 1 .. 10)
	{
		mountHeight ~= to!short(readln().chomp());
	}
	sort!("a > b")(mountHeight);
	writeln(to!(string[])(mountHeight[0..3]).join("\n"));
}