read -n1 s&&. ./* $[{a+,m|}=8**s/8] f="c=c+1&4?c-3:~(c|c/2|c/4)&73?c%8?1:c/8:c-73,c<2||f" b=a+8**t o=b\&m*5 $[h=8**{0..8},b&h*6?c=b-h*2,f,o*=c:0] ((o|b&b/4&m|++t>9))||echo $t