N,K=map(int,input().split()) ans=0 mod=998244353 A=[int(a) for a in bin(N)[2:]][::-1] M=len(A) a=0 t=1 for i in range(M+K): if i