import sys input = sys.stdin.readline N,M=map(int,input().split()) mod=998244353 BASE=[] def sweep(x): for b in BASE: if b^x