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