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