import math N, L = map(int, input().split()) mod = 998244353 cnt = math.ceil(N/L) print((pow(2, cnt, mod) - 1) % mod)