#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;

///assic value of ('0'-'9') is(48 - 57) and (a-z) is (97-122) and (A-Z) is(65-90) and 32 for space
typedef long long int ll;
typedef pair<ll, ll> pii;
typedef vector<pii> vii;
typedef vector<char> VEC1D;
typedef vector<VEC1D> VEC2D;
typedef vector<VEC2D> VEC3D;
typedef vector<ll> VEC1Dll;
typedef vector<VEC1Dll> VEC2Dll;
typedef vector<VEC2Dll> VEC3Dll;
typedef cc_hash_table<ll, ll, hash<ll>> ht;
typedef gp_hash_table<int, int> gt;

#define  pb push_back
#define f(i,a,b) for(ll i=a;i<b;i++)
#define fo(i,a,b) for(ll i = a; i<=b;i++)
#define rf(i,a,b)  for(ll i=a;i>=b;i--)
#define vll vector<ll>
#define tests() int test_cases ; cin >> test_cases ; while(test_cases--)
#define ub upper_bound
#define lb lower_bound
#define all(v) v.begin(),v.end()
#define MAXN 100001
#define MOD 1000000007
#define deb(x) cout << '>' << #x << ':' << x << endl;
#define sp " "
#define MS(x,y) memset(x,y,sizeof(x))

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    ll n;
    cin>>n;
    ll ans = 0;
    ll last = 0;
    f(i,0,n){
        ll a;
        cin>>a;
        if(i == 0)
        last = a;
    }
    f(i,0,n){
        ll b;
        cin>>b;
        ans+=b;

    }f(i,0,n-1){
        ll c;
        cin>>c;
        if(i!=last-2)ans+=c;
    }
    cout<<ans<<endl;
    return 0;
}
