#include <iostream>

int main(int argc, char const *argv[]){
	
	int data[10] = {};
	for (int i = 0; i < 10; ++i){
		std::cin >> data[i];
	}

	for (int i = 0; i < 3; ++i){
		for (int j = 9; j > i; --j){
			if(data[j]>data[j-1]){
				int buff = data[j];
				data[j] = data[j-1];
				data[j-1] = buff;
			}
		}
	}

	for (int i = 0; i < 3; ++i){
		std::cout << data[i] << std::endl;
	}

	return 0;
}
