from itertools import accumulate N = int(input()) A = list(map(int,input().split())) B = list(map(int,input().split())) AC = list(accumulate(A)) BC = list(accumulate(B)) C = [0] for i in range(N): C.append(C[-1]+AC[i]+BC[i]) for i in range(N-1): if i > 0: C.append(C[-1]+AC[-1]+BC[-1]-(AC[i-1]+BC[i-1])-(N+1)*(A[i]+B[i])) else: C.append(C[-1]+AC[-1]+BC[-1]-(N+1)*(A[i]+B[i])) print(*C)