N = int(input()) A = tuple(map(int, input().split())) B = tuple(map(int, input().split())) def f(X): res = [0] * 2 * N s = 0 t = 0 for i, a in enumerate(X, 1): s += a t += s res[i] += t for i, a in enumerate(X[:-1], N + 1): s -= a t += s - a * N res[i] += t return res print(*[a + b for a, b in zip(f(A), f(B))])