n = int(input())
a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
c_list = list(map(int, input().split()))

ans = 0
prev = 0
for i in range(n):
  if a_list[i] == prev + 1:
    ans += b_list[i] + c_list[i]
  else:
    ans += b_list[i]
  prev = a_list[i]
print(ans)