#include #include #include #include #include using namespace std; using i64 = long long; using u64 = unsigned long long; using i32 = int; using u32 = unsigned int; #define rep(i,n) for(int i=0; i<(int)(n); i++) using modint = atcoder::static_modint<998244353>; vector powof10; vector f(int n, int x){ if(n == 0) return {1}; if(n == 1) return {1,powof10[x+1]}; vector L = f(n/2, x); vector R = f((n+1)/2, x+n/2); return atcoder::convolution(L,R); } int main() { int N; cin >> N; powof10.assign(N+1, 10); powof10[0] = 1; for(int i=2; i<=N; i++) powof10[i] = powof10[i-1] * powof10[i-1]; auto res = f(N-1, 0); vector A(N+1,0); rep(i,N){ u32 a; cin >> a; A[i+1] = a; } A = atcoder::convolution(A, res); rep(i,N) A[i] += A[N+i]; A.resize(N); rep(i,N) cout << A[i].val() << '\n'; return 0; } struct ios_do_not_sync{ ios_do_not_sync(){ std::ios::sync_with_stdio(false); std::cin.tie(nullptr); } } ios_do_not_sync_instance;