#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int cmp(const void *a,const void *b)
{
    return *(char *)a-*(char *)b;
}
int main()
{
    char a[3];
    while(scanf("%s",a)!=EOF)
    {
        qsort(a,3,sizeof(a[0]),cmp);   
        printf("%c %c %c\n",a[0],a[1],a[2]);                      
    }
    //system("pause");
    return 0;
}
posted on 2011-07-15 17:32  枫叶飘泪  阅读(442)  评论(0编辑  收藏  举报