N=int(input())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
C=list(map(int,input().split()))

score=sum(B)
for a,b in zip(A,A[1:]):
    if b==a+1:
        score+=C[a-1]

print(score)