import sys import numpy as np def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LI2(): return list(map(int,sys.stdin.readline().rstrip())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) def LS2(): return list(sys.stdin.readline().rstrip()) N = I() X = np.array([0]+LI())+np.array([0]+LI(),np.int64) Y = np.array([i for i in range(N+1)],np.int64) def convolution(A,B): size = 1 while 2*size < len(A)+len(B)-1: size *= 2 size *= 2 FA = np.fft.rfft(A,size) FB = np.fft.rfft(B,size) FA *= FB Z = np.fft.irfft(FA,size) return np.rint(Z).astype(np.int64) ANS = convolution(X,Y)[1:2*N+1] print(*ANS)