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