#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
char s[5];
while(scanf("%s",s)!=EOF)
{
int i, j;
char ch;
sort(s, s+3);
for(i=0; i<3; i++)
{
if(i!=2)
printf("%c ",s[i]);
else
printf("%c\n",s[i]);
}
}
}
#include<algorithm>
using namespace std;
int main()
{
char s[5];
while(scanf("%s",s)!=EOF)
{
int i, j;
char ch;
sort(s, s+3);
for(i=0; i<3; i++)
{
if(i!=2)
printf("%c ",s[i]);
else
printf("%c\n",s[i]);
}
}
}