n=int(input())
a=[int(n) for i in input().split()]
b=[int(n) for i in input().split()]
c=[int(n) for i in input().split()]

s=sum(b)

for i in range(n-1):
    if a[i+1]-a[i]==1:
        s+=c[a[i]-1]
print(s)