
n = int(input())

a = list(map(int, input().split()))

b = list(map(int, input().split()))

c = list(map(int, input().split()))

m = n-1
sumc = sum(c)
tmp = a[m]
if m > 1:
    sumc -= c[tmp-1]
ans = sum(b)
ans += sumc

print(ans)
