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