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

int main(string[] args) {
	uint i;
	uint[] hills;
	hills.length = 10;
	for (i = 0; i < 10; i++) {
		hills[i] = to!(uint)(readln());
	}

	sort!("a > b")(hills);

	for (i = 0; i < 3; i++) {
		writeln(hills[i]);
	}

	return 0;
}