N, L = map(int, input().split()) N = (N+L-1)//L ans = pow(2, N, 998244353) - 1 print(ans)