I=$('pre').innerText.trim().split`\n`;O=[];I.map(l=>[...l].map((x, i)=>{if(+x)O[i]=(O[i]||0)+1})) g=t=>parseInt(O.reduce((a,p)=>a+(t^(p