#include<stdio.h>
#include<math.h>
int main()
{
char x,y,z,t;
while(scanf("%c%c%c%*c",&x,&y,&z)!=EOF)
{
if(x>y)
{
t=x;
x=y;
y=t;
}
if(y>z)
{
t=y;
y=z;
z=t;
}
if(x>y)
{
t=x;
x=y;
y=t;
}
printf("%c %c %c\n",x,y,z);
}
return 0;
}
01-29
450
07-18