ll@n,@a[n],b[n]; rd(((b+1))(n-1)); ll ae=2,be=2; while(aer+c-2){ z=(r^c)&1^a[1]^1; }else{ z=t&1; } wt(z); }