#include<iostream>
using namespace std;
int main(){
	int m[10],dum;
	for (int i = 0; i < 10; i++){
		cin >> m[i];
	}
	for (int j = 0; j < 3; j++){
		for (int i = j+1; i < 10; i++){
			if (m[j] < m[i]){
				dum = m[j];
				m[j] = m[i];
				m[i] = dum;
			}
		}
	}
	for (int i = 0; i < 3; i++){
		cout << m[i] << endl;
	}
	return 0;
}
