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