#include using namespace std; long long mod = 998244353; //入力が必ず-mod= mod) v -= mod; return *this; } mint operator-=(const mint b){ v -= b.v; if(v < 0) v += mod; return *this; } mint operator*=(const mint b){v = v*b.v%mod; return *this;} mint operator/=(mint b){ if(b == 0) assert(false); int left = mod-2; while(left){if(left&1) *this *= b; b *= b; left >>= 1;} return *this; } mint operator++(){*this += 1; return *this;} mint operator--(){*this -= 1; return *this;} mint operator++(int){*this += 1; return *this;} mint operator--(int){*this -= 1; return *this;} bool operator==(const mint b)const{return v == b.v;} bool operator!=(const mint b)const{return v != b.v;} bool operator>(const mint b)const{return v > b.v;} bool operator>=(const mint b)const{return v >= b.v;} bool operator<(const mint b)const{return v < b.v;} bool operator<=(const mint b)const{return v <= b.v;} mint pow(long long n)const{ mint ret = 1,p = v; if(n < 0) p = p.inv(),n = -n; while(n){ if(n&1) ret *= p; p *= p; n >>= 1; } return ret; } mint inv()const{return mint(1)/v;} }; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; int Limit = N; //Limit 必要なサイズ fac->x! facinv->1/x! inv->1/x. vector fac(Limit+1,1); for(int i=1; i<=Limit; i++) fac.at(i) = fac.at(i-1)*i; vector facinv(Limit+1); facinv.at(min((int)mod-1,Limit)) = fac.at(min((int)mod-1,Limit)).inv(); for(int i=min((int)mod-2,Limit-1); i>=0; i--) facinv.at(i) = facinv.at(i+1)*(i+1); //vector inv(Limit+1); for(int i=1; i<=Limit; i++) inv.at(i) = fac.at(i-1)*facinv.at(i); //必要なら解放!. auto nCr = [&](int n, int r) -> mint { if(n < r || r < 0 || n < 0) return 0; return fac.at(n)*facinv.at(r)*facinv.at(n-r); }; vector B(N+1); mint div2 = mint(1)/2,div4 = div2*div2; for(int i=(N+1)/2; i>=1; i--){ if(N%2) B.at(i*2-1) = nCr(N,(N+1)/2-i)*div4.pow((N+1)/2-1); else B.at(i*2) = nCr(N,N/2-i)*div2.pow(N-1); } if(N%2 == 0) B.at(0) = nCr(N,N/2)*div4.pow(N/2); mint mul = mint(2).pow(N); for(auto &b : B) b *= mul; for(auto &b : B )cout << b.v << " "; cout << endl; }