/*用algorithm里面的sort*/
#include<stdio.h>
#include<string.h>#include<algorithm>
using namespace std;
int s[3];
int main()
{
memset(s,'\0',3);
while(scanf("%c%c%c", &s[0], &s[1], &s[2]) != EOF)
{
getchar();
sort(s, s+3);
for(int i =0; i < 3; i ++)
{
if(i == 0)
printf("%c", s[i]);
else
printf(" %c", s[i]);
}
printf("\n");
}
return 0;
}