#include<iostream>
#include<vector>
int main(){
  int n, t;
  long long int ans = 0;
  cin >> n;
  vector<int> a, b, c;
  for(int i=0;i<n;i++){
    cin >> t;
    a.push_back(t);
  }
  for(int i=0;i<n;i++){
    cin >> t;
    b.push_back(t);
    ans += t;
  }
  for(int i=0;i<n-1;i++){
    cin >> t;
    c.push_back(t);
  }
  int prev = -2;
  for(int i=0;i<n;i++){
    if(prev+1=a[i]) ans += c[prev];
    prev = a[i];
  }
  cout << ans << endl;
}