#include void build(char *s,int len,char *res,int bit){ int l=0; int r=len-1; int i=0; while(l>=1; } res[i]=s[l]; return; } void run(void){ char s[11]; scanf("%s",s); int len=0; while(s[len]!='\0') len++; int ans=1<<(len-1); int i,j; for(i=0;i<(1<<(len-1));i++){ char si[11]; build(s,len,si,i); for(j=i+1;j<(1<<(len-1));j++){ char sj[11]; build(s,len,sj,j); int k; for(k=0;k