read $_ -aw for((a=1;b=w[i++],j=n+=b,b;f)){ f='a[--j+b<<1]|=a[j*2],++d<14&&j&&(f,j&&f),--d' } im echo ${_[a[n]]}possible