N = int(input()) A = [int(a) for a in input().split()] B = [int(a) for a in input().split()] assert 1 <= N <= 2 * 10 ** 5 assert len(A) == N assert len(B) == N for a in A: assert 1 <= a <= 10 ** 6 for b in B: assert 1 <= b <= 10 ** 6