mod=998244353 n,l = map(int,input().split()) if n%l == 0: n//=l else: n//l+1 print(pow(2,n,mod)-1)