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