import sys input = sys.stdin.readline N,M=map(int,input().split()) mod=998244353 if M<=100: ANS=0 for i in range(M): ANS^=N*(1<