for(n=0;$=readline();)$>'o'?n*=n%8&&n:$>'i'?print(n):n-=$>gc?-1:n>0
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page