import numpy as np def convolution(A, B): n, m = len(A), len(B) ph = 1 << (n + m - 2).bit_length() T = np.fft.rfft(A, ph) * np.fft.rfft(B, ph) res = np.fft.irfft(T, ph)[: n + m - 1] return np.rint(res).astype(np.int64) n = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) A = [0] + A B = [0] + B f = list(range(n + 1)) A = convolution(A, f) B = convolution(B, f) C = [a + b for a, b in zip(A, B)] C = C[1:] print(*C)