using C=System.Console;class M{static void Main(){for(int b,i=0;(b=C.Read())>0;i+=b%8,i=b<11|i==7?0:i)if(b<11)C.WriteLine(i);}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page