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