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