import sys input = sys.stdin.readline mod=998244353 INV=pow(2,mod-2,mod) POW2INV=[1] for i in range(3*10**5): POW2INV.append(POW2INV[-1]*INV%mod) N,Q=map(int,input().split()) A=list(map(int,input().split())) INC=[0]*N now=0 for i in range(1,N): if A[i-1]