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

	int a,b,c,d,e,f,g,h,i,j;
	cin>>a;
	cin>>b;
	cin>>c;
	cin>>d;
	cin>>e;
	cin>>f;
	cin>>g;
	cin>>h;
	cin>>i;
	cin>>j;

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}
	if(d<e){swap(d,e);}
	if(e<f){swap(e,f);}
	if(f<g){swap(f,g);}
	if(g<h){swap(g,h);}
	if(h<i){swap(h,i);}
	if(i<j){swap(i,j);}

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}
	if(d<e){swap(d,e);}
	if(e<f){swap(e,f);}
	if(f<g){swap(f,g);}
	if(g<h){swap(g,h);}
	if(h<i){swap(h,i);}

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}
	if(d<e){swap(d,e);}
	if(e<f){swap(e,f);}
	if(f<g){swap(f,g);}
	if(g<h){swap(g,h);}

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}
	if(d<e){swap(d,e);}
	if(e<f){swap(e,f);}
	if(f<g){swap(f,g);}

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}
	if(d<e){swap(d,e);}
	if(e<f){swap(e,f);}

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}
	if(d<e){swap(d,e);}
	
	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}
	if(c<d){swap(c,d);}

	if(a<b){swap(a,b);}
	if(b<c){swap(b,c);}

	if(a<b){swap(a,b);}

	cout<<a<<endl;
	cout<<b<<endl;
	cout<<c<<endl;

	return 0;
}
