n=int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = list(map(int, input().split()))

addc = []
kaisu = -10
for i in range(n-1):
    if a[i+1] == a[i]+1:
        addc.append(c[i-1])
ans = sum(b)+sum(addc)
print(str(ans))