#include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; const long long modc=998244353, MAX=1000000; vector f, finv; long long inv(long long x){ long long ans = 1, e = modc-2; x %= modc; while (e > 0){ if ((e & 1LL)) ans = (ans * x) % modc; e = e >> 1LL; x = (x*x) % modc; } return ans; } void init(){ f.resize(MAX+1); finv.resize(MAX+1); f[0] = 1; for (int i=1; i<=MAX; i++) f[i] = (f[i-1]*i) % modc; finv[MAX] = inv(f[MAX]); for (int i=MAX-1; i>=0; i--) finv[i] = (finv[i+1] * (i+1)) % modc; } long long P(long long n, long long k){ if (n < k || k < 0) return 0; return (f[n] * finv[n-k]) % modc; } int main(){ init(); ll N, ans; cin >> N; for (ll K=1; K<=N; K++){ ans = ((N-K+1) * K) % modc; ans = ans * P(N+1, N+1) % modc; ans = ans * inv(K+1) % modc; cout << ans << endl; } return 0; }