#include <iostream>
#include <array>
#include <algorithm>

int main() {
	std::array<int, 10> heights;
	for (auto& val : heights)
		std::cin >> val;
	std::sort(heights.begin(), heights.end(), [](int x, int y){return x > y;});
	for (int i = 0; i < 3; ++i)
		std::cout << heights[i] << std::endl;
	return 0;
}