s=a=raw_input() while 1:i=-1;exec"i-='Z'<a[i];"*len(a);print a;a=a[:i]+a[i:].swapcase();i/=s!=a
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page