import math n,l = map(int,input()) num = math.ceil(n/l) ans = 1 for i in range(num): ans *= 2 ans %=998244353 print(ans-1)