import math N, L = map(int, input().split()) mod = 998244353 cnt = N//L + (N%L != 0) print((pow(2, cnt, mod) - 1) % mod)