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()] 

for i in range(n):
    if a[i] == a[i+1]:
        addc += c[i]

    addb += b[i]
print(addc+addb) 
