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