n = int(input()) a = list(map(int,input().split())) b = list(map(int,input().split())) a1,a2 = a.copy(),a.copy() b1,b2 = b.copy(),b.copy() c = [0]*(2*n) c[2*n-1] = n*a[n-1]+n*b[n-1] for i in range(n-1): a1[i+1] += a1[i] b1[i+1] += b1[i] for i in range(n-1,0,-1): a2[i-1] += a2[i] b2[i-1] += b2[i] for i in range(n-1): c[i+1] = c[i]+a1[i]+b1[i] for i in range(2*n-1,n,-1): c[i-1] = c[i]-a2[i-n]-b2[i-n]+n*(a[i-1-n]+b[i-1-n]) print(*c)