#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000000LL int main(){ int N,K; cin>>N>>K; vector t(N+1); t[0] = 1; { int tk = (K)/2; mint tt = 1; for(int i=1;i<=N;i++){ tt *= tk+i-1; tt /= i; t[i] = tt; } } vector a(N); rep(i,N){ int tt; cin>>tt;a[i] = tt; } a = convolution(a,t); { int tk = (K+1)/2; mint tt = 1; for(int i=1;i<=N;i++){ tt *= tk+i-1; tt /= i; t[i] = tt; if(i%2==1)t[i] *= -1; } } a = convolution(a,t); rep(i,N){ if(i%2==1 && K%2==1)a[i] *= -1; if(i!=0)cout<<' '; cout<