#include #include const int MOD = 998244353; int main() { int N, K; std::cin >> N >> K; std::vector dp(N + 1, 0); dp[0] = 1; for (int i = 1; i <= N; ++i) { for (int j = N; j >= i; --j) { for (int k = 1; k <= K && k * i <= j; ++k) { dp[j] = (dp[j] + dp[j - k * i]) % MOD; } } } for (int i = 1; i <= N; ++i) { std::cout << dp[i] << " "; } std::cout << std::endl; return 0; }