for(a=readline().split(i='');i++<1<<(j=a.length);)for(print(a.join(''));j--&&(a[j]=String.fromCharCode(a[j].charCodeAt()^32))<'a';);
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page