n,m=map(int,input().split()) c=[0]*(1<>j)&1==0: q[i]&=q[i|(1<>j)&1==0: q[i]+=q[i|(1<>j)&1==0: q[i]-=q[i|(1<0)) or c[i] for i in range(1<