#include using namespace std; int N; long sA[4<<17],sB[4<<17]; int A[2<<17]; void f(long S[]) { S[0]=0; for(int i=1;i<2*N;i++) { S[i]=S[i-1]; if(i<=N) { cin>>A[i]; S[i]+=A[i]; } else { S[i]-=(long)(N+1)*A[i-N]; if(i>N+1)S[i]+=(long)N*A[i-N-1]; } } } main() { cin>>N; f(sA); f(sB); long ans=0; for(int i=1;i<=2*N;i++) { cout<<(ans+=sA[i-1]+sB[i-1])<<(i==2*N?"\n":" "); } }