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

sum = sum(c) + sum(b) 

if a[n-1] != n:
    sum -= c[a[n-1]-1]

print(sum)
