import math n,l=map(int,input().split()) nn=math.ceil(n/l) ans=(2**nn-1)%998244353 print(ans)