n = int(input())

a = list(map(int,input().split()))
b = list(map(int,input().split()))
ｃ = list(map(int,input().split()))

if(len(a) >2):
  result = sum(b) + sum(c) - c[a[-1]-1]
  print(result)
else:
  result = sum(b) + c[0]
  print(result)
