using c=System.Console;class P{static void Main(){for(int n=0,h;0<=(h=c.Read()-48);)c.Write(h+(0<(n=(n*3+h)%7)?"":"\n"));}};
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page