#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,n) for(ll i = 0;i=0;i--) #define ALL(a) a.begin(),a.end() template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } typedef long long ll; typedef long double ld; ll mod_pow(ll x, ll n, ll mod) { ll res = 1; while (n > 0) { if (n & 1) res = res * x % mod; x = x * x % mod; n >>= 1; }return res; } ll MOD = 998244353; int main() { ll n, l; cin >> n>>l; ll t = (n - 1) / l + 1; t %= MOD; cout << (mod_pow(2, t, MOD) + MOD - 1) % MOD<