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