def accumulate(X): Y=[0]*(len(X)) for i in range(1,len(X)): Y[i]=X[i]+Y[i-1] return Y #================================================== N=int(input()) A=[0]+list(map(int,input().split())) B=[0]+list(map(int,input().split())) E=[i*A[i] for i in range(N+1)] F=[j*B[j] for j in range(N+1)] #================================================== A_cum=accumulate(A) B_cum=accumulate(B) E_cum=accumulate(E) F_cum=accumulate(F) C=[0]*(2*N+1) for k in range(2,2*N+1): l=max(1,k-N); r=min(k-1,N) C[k]=k*((A_cum[r]-A_cum[l-1])+(B_cum[r]-B_cum[l-1]))-((E_cum[r]-E_cum[l-1])+(F_cum[r]-F_cum[l-1])) print(*C[1:])