#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; vector A(n+1),B(n+1); rep(i,n) cin>>A[i+1]; rep(i,n) cin>>B[i+1]; vector SA(n+2),SB(n+2); for(int i=1;i<=n;i++) SA[i]=SA[i-1]+A[i]; for(int i=1;i<=n;i++) SB[i]=SB[i-1]+B[i]; vector AA(2*n+2),BB(2*n+2); for(int i=2;i<=n+1;i++){ AA[i]=AA[i-1]+SA[i-1]; BB[i]=BB[i-1]+SB[i-1]; } for(int i=n+2;i<=2*n;i++){ AA[i]=AA[i-1]-n*A[i-n-1]+SA[n]-SA[i-n-1]; BB[i]=BB[i-1]-n*B[i-n-1]+SB[n]-SB[i-n-1]; } for(int i=1;i<=2*n;i++){ if(i!=1) cout<<" "; cout<