#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

int main() {
  int n ;
  cin >> n;
  vctor<int> a(n);
  rep(i,n) cin >> a[i];
  vctor<int> b(n);
  rep(i,n) cin >> b[i];
  vctor<int> c(n-1);
  rep(i,n-1) cin >> c[i];
  int sum = 0;
  rep(i,n){
    int sum += b[i];
    if (a[i+1] - a[i] == 1) sum += c[i]; 
  }
  cout << sum << endl;
  return 0;
}
