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