from sys import stdin n = int(stdin.readline().rstrip()) a = [int(x) for x in stdin.readline().rstrip().split()] b = [int(x) for x in stdin.readline().rstrip().split()] ruisekia = [0 for i in range(n+1)] ruisekib = [0 for j in range(n+1)] for i in range(n): ruisekia[i+1] = ruisekia[i] + a[i] ruisekib[i+1] = ruisekib[i] + b[i] ans = [0 for i in range(2*n)] for i in range(1,n+1): ans[i] = ans[i-1] + ruisekia[i] + ruisekib[i] for i in range(n-1): ans[n+i+1] = ans[n+i] + ruisekia[n] - ruisekia[i] - (n+1) * a[i] ans[n+i+1] += ruisekib[n] - ruisekib[i] - (n+1) * b[i] L=[str(i) for i in ans] L=' '.join(L) print(L)