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()) Y = np.array([i for i in range(N+1)]) def convolution(A,B): size = len(X)+len(Y)-1 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.int32) ANS = convolution(X,Y)[1:] print(*ANS)