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

b_sum = sum(b)

# c_sum = 0
# for i in range(n-1):
#     ai = a[i]
#     if ai != n:
#         c_sum += c[ai-1]
c_sum = sum(c)
if a[-1] != n:
    c_sum -= c[a[-1] - 1]
print(b_sum + c_sum)