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