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

ans = sum(B)
p = -1
for i,a in enumerate(A):
    if p+1==a:ans += C[p-1]
    p = a
print(ans)