#include using namespace std; template int pow(int x, T n, int mod = std::numeric_limits::max()) { int res = 1; while (n > 0) { if (n & 1) res = static_cast(res) * static_cast(x) % mod; x = static_cast(x) * static_cast(x) % mod; n >>= 1; } return res; } template int64_t pow(int64_t x, T n, int64_t mod = std::numeric_limits::max()) { int64_t res = 1; while (n > 0) { if (n & 1) res = static_cast<__int128>(res) * static_cast<__int128>(x) % mod; x = static_cast<__int128>(x) * static_cast<__int128>(x) % mod; n >>= 1; } return res; } const int MOD = 998244353; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int64_t N, L; cin >> N >> L; cout << pow(2, (N + L - 1) / L, MOD) - 1 << '\n'; return 0; }