N,K=map(int,input().split()) A=list(map(int,input().split())) left=A[:N//2] right=A[N//2:] p=998244353 ps=998 exp2=[2**i for i in range(len(A)+1)] def half(lis): lists=[[[] for _ in range(998)] for _ in range(K+1)] for i in range(exp2[len(lis)]): ans_long=0 ans_short=0 count=0 for j in range(len(lis)): if i&1: count+=1 ans_long+=lis[j] ans_long%=p ans_short+=lis[j] ans_short%=ps i>>=1 if K