#include using namespace std; #define rep(i,n) for(int i = 0; i < n; i++) using ll = long long; using graph = vector>; const ll mod = 998244353; const int INF = 1001001001; int main(){ ll n, k; cin >> n >> k; ll ans = 0; if(n <= k) ans = 1; else{ ans = (n / k) % mod * 2 % mod; if(n%k != 0) ans++; else ans--; } cout << ans % mod << endl; }