N = int(input())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
C = list(map(int,input().split()))

ans = sum(B)+sum(C)
if A[-1] == N:
    pass
else:
    ans = ans - C[A[-1]-1]
print(ans)