#include using namespace std; using ll = long long; #include using mint = atcoder::modint998244353; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,k; cin>>n>>k; vector> dp1(k+1,vector(n+1,0)),dp2(k+1,vector(n+1,0)); dp1[0][0] = 1; mint invn = 1 / mint(n); for(int i = 0;i=0){ dp1[i+1][j-1] += dp1[i][j] * ok; dp2[i+1][j-1] += ok * (dp1[i][j]+dp2[i][j]); } mint no = 1 - ok; if(j+1<=n){ dp1[i+1][j+1] += dp1[i][j] * no; dp2[i+1][j+1] += dp2[i][j] * no; } } } mint ans = n; for(int i = 0;i<=n;i++) ans += dp2[k][i]; cout<