N = int(input())
A = [int(input()) fot i in range(N)]
B = [int(input()) for i in range(N)]
C = [int(input()) for i in range(N)]
res = 0
for j in range(N - 1):
  if (abs(A[i] - A[i + 1]) == 1):
    res += C[i]
  else:
    res += B[i]
    
print(res)