#include <stdio.h>
#include <iostream>

using namespace std;

int main() {

	int data[10];
	int kari;

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

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

	cout << data[9] << endl << data[8] << endl << data[7] << endl;

	return 0;
}