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