s=io.read"*a"print((s:gsub("%.()",function(x)n=0 for y=x-17,x+17,17 do n=n+#s:sub(y%300-2,y%300):gsub("[^*]","")end return n end)))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page