N=int(input())
A=input().split()
A=[int(n) for n in A]
B=input().split()
B=[int(n) for n in B]
C=input().split()
C=[int(n) for n in C]
ans=0
ans+=sum(B)
ans+=sum(C)
if A[-1]-1!=len(C):
    ans-=C[A[-1]-1]
print(ans)