You are given integer sequences A, B, and C, each of length N. For each k=1,2,…,N, find the following value modulo 998244353.
∑_1≤i≤N(C_i×∏_1≤j≤k(A_i+B_j))
The first line contains an integer N (1≤N≤250000).
The second line contains N integers A_1,A_2,…,A_N (0≤A_i<998244353).
The third line contains N integers B_1,B_2,…,B_N (0≤B_i<998244353).
The fourth line contains N integers C_1,C_2,…,C_N (0≤C_i<998244353).
For each k=1,2,…,N, print the answer.