#include <stdio.h>
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000003

int main() {
	
	int N,K;
	cin>>N>>K;
	
	vector<mint> dp(N+1,0);
	dp[N] = 1;
	
	rep(_,K){
		vector<mint> ndp(N+1,0);
		ndp[N] = dp[N];
		mint sum = 0;
		for(int j=N-1;j>=0;j--){
			sum += dp[j+1];
			ndp[j] = sum / (N-j);
		}
		swap(dp,ndp);
	}
	cout<<dp[0].val()<<endl;
	
}