N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) Ac = [0] * (N + 1) Bc = [0] * (N + 1) for i in range(N): Ac[i + 1] = Ac[i] + A[i] Bc[i + 1] = Bc[i] + B[i] Acc = [0] Bcc = [0] for i in range(N): Acc.append(Acc[-1] + Ac[i + 1]) Bcc.append(Bcc[-1] + Bc[i + 1]) for i in range(N): Acc.append(Acc[-1] + Ac[N] - Ac[i + 1] - N * A[i]) Bcc.append(Bcc[-1] + Bc[N] - Bc[i + 1] - N * B[i]) ans = [0] for i in range(1, 2 * N): ans.append(Acc[i] + Bcc[i]) print(*ans)