P = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) f = np.array(A, np.int64) g = np.array(B, np.int64) h = np.convolve(f, g)