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