#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using ld = long double;
int main() {
  int n;
  cin >> n;
  int a[n];
  int b[n], c[n - 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    cin >> b[i];
    sum += b[i];
  }
  for (int i = 1; i <= n - 1; i++) {
    cin >> c[i];
  }
  int j = 1;
  for (int i = 1; i < n; i++) {
    int t = a[i];
    if (t + 1 == a[i + 1]) {
      sum += c[j];
      j++;
    }
  }
  cout << sum;
  return 0;
}
