N,L = map(int, input().split()) MOD = 998244353 if L>=N: print(1) else: n = (N+L-1)//L ans = (pow(2,n,MOD)-1)%MOD print(ans)