#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
  int n,ans,b; cin>>n; ans=0;
  vector<int> a(n); rep(i,n) cin>>a[i];
  rep(i,n) {cin>>b; ans+=b;}
  vector<int> c(n-1); rep(i,n-1) cin>>c[i];
  
  rep(i,n-1) if(a[i]+1==a[i+1]) ans+=c[a[i]-1];
  cout<<ans<<endl;
}