c=0 for o in raw_input():c=[c+1,c/2,c*c][ord(o)/5&7];print c
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page