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