#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); rep(i,n) cin>>c[i];
  
  rep(i,n-1) if(a[i]+1=a[i+1]) ans+=c[i];
  cout<<ans<<endl;
}
