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