#include<iostream>
using namespace std;

int main(){
    int i, j, damy, mthei[10];

	for(i = 0; i < 10; i++){
		cin >> mthei[i];
	}

	for(i = 0; i < 10; i++){
		for(j = i + 1; j < 10; j++){
			if(mthei[i] < mthei[j]){
				damy = mthei[i];
				mthei[i] = mthei[j];
				mthei[j] = damy;
			}
		}
	}

	for(i = 0; i < 3; i++){
		cout << mthei[i] << endl;
	}

	return 0;
}