read -dx -aa for((r=1;j++/a?r<<=!!f,f=0,j=++i<15:1;a[j]^=a[j]&1?f=f?f:a[j]:0,a[j]/=2)){ :;} echo $r