using C=System.Console;class X{static void Main(){for(int s=0;;C.WriteLine(s),s=0)foreach(int c in C.ReadLine())s+="02210313074020029000033739"[c-97]-47;}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page