n = int(input())
a = [int(i) for i in input().split()]
b = [int(i) for i in input().split()]
c = [int(i) for i in input().split()]

ans = b
for i in range(len(c)):
    if a[i] + 1 == a[i + 1]:
        ans.append(c[i - 1])
print(sum(ans))
