#include<iostream>
#include<string>
using namespace std;
void string_upper(string a, string b, string c)
{
if (b > c)
{
string temp = b;
b = c;
c = temp;
}
if (a < b)
cout << a << " "<<b <<" "<< c << endl;
else if(a<c)
{
cout << b << " " << a << " " << c<<endl;
}
else
{
cout << b << " " << c << " " << a << endl;
}
}
void test01() //字符串升序排列
{
string s1, s2, s3;
cin >> s1 >> s2 >> s3;
string_upper(s1, s2, s3);
}
int main()
{
test01();//字符串升序排列
system("pause");
return 0;
}