N=int(input()) A=list(map(int,input().split())) B=list(map(int,input().split())) ANS=0 for i in range(N): if A[i]