import math N, L = map(int, input().split()) mod = 998244353 M = math.ceil(N / L) ans = pow(2, M, mod) - 1 if ans == -1: ans = mod print(ans)