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