N,L=map(int,input().split()) n=(N+L-1)//L m=(pow(2,n,998244353)-1)%998244353 print(m)