import numpy def convolve(f, g): fft_len = 1 while 2 * fft_len < len(f) + len(g) - 1: fft_len *= 2 fft_len *= 2 Ff = numpy.fft.rfft(f, fft_len) Fg = numpy.fft.rfft(g, fft_len) Fh = Ff * Fg h = numpy.fft.irfft(Fh, fft_len) h = numpy.rint(h).astype(numpy.int64) return h[:len(f) + len(g) - 1] N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) AB = [A[i] + B[i] for i in range(N)] D = [i for i in range(1, N + 1)] print(0, *convolve(AB, D))