#include#includeusing namespace std;int main(){ int i,n; char s[101]; scanf("%s",s); n=strlen(s); while(next_permutation(s,s+n)) ; do { putchar(s[0]); for(i=1;i printf(",%c",s[i]); puts(""); }while(next_permutation(s,s+n));}