n=int(input())
al=[int(i) for i in input().split()]
bl=[int(i) for i in input().split()]
cl=[int(i) for i in input().split()]
cnt=sum(bl)
for i in range(n-1):
	if al[i]+1==al[i+1]:
		cnt+=cl[al[i]-1]
print(cnt)