#include<stdio.h>

int main(void){
	int high[10];
	int temp, i, j;

	for(i = 0;i < 10;i++)
		scanf("%d", &high[i]);

	for(i = 0;i < 3;i++){
		for(j = i+1;j < 10;j++){
			if(high[i] < high[j]){
				temp = high[i];
				high[i] = high[j];
				high[j] = temp;
			}
		}
	}

	for(i = 0;i < 3;i++)
		printf("%d\n", high[i]);

	return 0;
}