#include<iostream>
#include<vector>
using namespace std;
int n, satisfaction = 0;
int tmp = 23;
int main(){
    cin >> n;

    vector<int> A(n);
    vector<int> B(n);
    vector<int> C(n);

    for(int i = 0; i < N; i++){
        cin >> A[i];
    }
    for(int i = 0; i < N; i++){
        cin >> B[i];
    }
    for(int i = 0; i < N - 1; i++){
        cin >> C[i];
    }

    for(int NumOfFood : A){
        satisfaction += B[NumOfFood];
        if(NumOfFood - tmp == 1){
            satisfaction += C[tmp];
        }
        tmp = NUmOfFood;
    }
 

    cout << satisfaction << endl;
    return 0;
}