n = int(input())
abc = []
for i in range(3):
  abc += [[int(i) for i in input().split()]]
ps = sum(abc[1])
for i in range(n-1):
  if abc[0][i]+1 == abc[0][i+1]:
    ps += abc[2][abc[0][i]-1]
print(ps)