#include using namespace std; int main(){ long long n,l; cin>>n>>l; cout<<(atcoder::modint998244353(2).pow((n+l-1)/l)-1).val()<