# include <iostream>
using namespace std;
int main(){
	

	long int a[10], i, j, b, max1, max2, max3;

	cout << "\n";

	for (i = 0; i < 10; i++)
		cin >> a[i];

	for (j = 0; j < 9; j++)
	for (i = 0; i < 9 - j; i++)
	if (a[i] > a[i + 1])
	{
		b = a[i];
		a[i] = a[i + 1];
		a[i + 1] = b;
	}

	max1 = a[0];
	max2 = a[1];
	max3 = a[2];
	cout << max1 << "\t";
	cout << max2 << "\t";
	cout << max3 << endl;
		return 0;
		/*Javad SHeybani*/

	}