n = int(input())
a,b,c = list(map(int,input().split())),list(map(int,input().split())),list(map(int,input().split()))
ans = sum(b)
for i in range(n-1):
  if a[i] == a[i+1]-1:
    ans += c[a[i]-1]
print(ans)