#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int x[10];
	for (int i = 0; i < 10; i++){
		cin >> x[i];
	}
	sort(end(x), begin(x));
	cout << x[0];
	cout << x[1];
	cout << x[2];
	
}
