n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = list(map(int,input().split()))

ans = sum(b)
x=-1
for i in a:
    if x+1==i:
        ans+=c[x-1]
    x = i
print(ans)