#include<iostream>
#include<algorithm>
using namespace std;
int a[10];
int main(){
	for (int i = 0; i < 10;i++){
		cin >> a[i];
	}
	sort(a[0], a[9]);
	cout << a[0] << a[1] << a[2] << endl;
	return 0;
}