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