#include<iostream>
using namespace std;

int main(){
	int h[10];
	for (int i = 0; i < 10; i++){
		cin >> h[i];
	}
	int n = 0;
	int a = 0;
	while (n == 0){
		n++;
		for (int i = 0; i < 9; i++){
			
			if (h[i]<h[i + 1]){
				a = h[i];
				h[i] = h[i + 1];
				h[i + 1] = a;
				n = 0;
			}
		}
	}
	for (int i = 0; i < 3; i++){
		cout << h[i]<< '\n';
	}
	return 0;
}