N = int(input())
A = list(map(int, input().split()))
ans = sum(map(int, input().split()))
C = list(map(int, input().split()))
ans += sum(C[A[i]-1] if A[i]==A[i+1]-1 else 0 for i in range(N-1))
print(ans)