import std.stdio;
import std.algorithm;

void main()
{
	int[] mt = new int[10];
	foreach(mtnum; 0 .. 10)
	{
		readf("%d\n",&mt[mtnum]);
	}
	static bool highter(int x, int y)
	{
		return x > y;
	}
	sort!(highter)(mt);
	for(int i = 0;i < 3; i++)
	{
		writeln(mt[i]);
	}
}