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