#include using namespace std; #define rep(i,n) for (int i = 0; i < (n); i++) #define all(v) begin(v),end(v) using ll = long long; int main() { ll n,l;cin>>n>>l; int mod=998244353; ll ans=((ll)n+l-1)/l; cout<<((ll)ans*2-1)%mod<