n = int(input())
dishes = list(map(int, input().split()))
points = list(map(int, input().split()))
adds = list(map(int, input().split()))

if dishes[-1] == n:
  print(sum(points) + sum(adds))
else:
  print(sum(points) + sum(adds) - adds[dishes[-1]-1])