N = int(input())
A = []
B = []
C = []
for i in range(1,N+1):
  A += [int(input())]
for i in range(1,N+1):
  B += [int(input())]
for i in range(1,N+1):
  C += [int(input())]
s = 0:
for i in range(1,N):
 if A[i] == A[i-1]+1:
    d += C[i-1]
for i in range(1,N+1):
    d += B[i-1]
print(d)

    
 
 