import std.stdio;
import std.algorithm;
import std.conv;

void main(string[] args)
{
	int[] values;
	values.length = 10;

	foreach(int i;0..10)
	{
		readf("%d\n",&values[i]);
	}
	static bool greater(int x,int y)
	{
		return x > y;
	}
	sort!(greater)(values);
	foreach(int i;0..3)
	{
		writeln(values[i]);
	}
}