You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
113 B

d=list(open(0))
f=lambda y,x=1:sum(d[i][i*y//x%31]<'.'for i in range(0,323,x))
print(f(1)*f(3)*f(5)*f(7)*f(1,2))