N,M=map(int,input().split()) if N%M==0: a=N//M else: a=(N//M)+1 print(pow(2,a-1,998244353))