from math import ceil mod=998244353 n,l = map(int,input().split()) n=ceil(n/l) print(pow(2,n,mod)-1)