#include "stdio.h"
int main()
{
char max,x,y,z;
scanf("%c%c%c",&x,&y,&z);
while( scanf(%c%c%c,&x,&y,&z)!=EOF)
{
if( 'x'>'y' )
if( 'y'>'z')
printf("%c %c %c\n",z,y,x);
else if( 'x'>'z' )
printf("%c %c %c\n",y,z,x);
else printf("%c %c %c\n",y,z,x);
else if( 'y'<'z' )
printf("%c %c %c\n",x,y,z);
else if( 'x'>'z' )
printf("%c %c %c\n",z,x,y);
else printf("%c %c %c\n",x,z,y);
}
return 0;
}