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