#include <iostream>
#include <vector>
#include <algorithm>

int main(int argc, char **argv){
	std::vector<int> h_vec(10);

	for(int i = 0; i < 10; i++){
		std::cin >> h_vec[i];
	}
	std::sort(h_vec.begin(), h_vec.end());

	for(int i = 9; i >= 7; i--){
		std::cout << h_vec[i] << std::endl;
	}
	return 0;
}