while 1:i=t=0;s=raw_input()+'='*9;exec"t+=1;i+=ord(s[i])%3*t-t;"*9;print~i/-i
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page