#include<iostream>
using namespace std;
int main()
{
int i1,i2,i3;
cin>>i1>>i2>>i3;
sort(i1,i2,i3);
cout<<i1<<i2<<i3<<endl;;
double d1,d2,d3;
cin>>d1>>d2>>d3;
sort(d1,d2,d3);
cout<<d1<<d2<<d3<<endl;
string s1,s2,s3;
cin>>s1>>s2>>s3;
sort(s1,s2,s3);
cout<<s1<<s2<<s3<<endl;
return 0;
}
template<typename T>
void sort()
{
Tmax(Ta,Tb,Tc)
{
if(b>a)
a=b;
if(c>a)
a=c;
return a;
}
}