#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[N], B[N], C[N - 1], sum = 0;
  for (int i = 0; (i) < (N); (i)++) {
    cin >> A[i];
  }
  for (int i = 0; (i) < (N); (i)++) {
    cin >> B[i];
    sum += B[i];
  }
  for (int i = 0; (i) < (N - 1); (i)++) {
    cin >> C[i];
  }
  for (int i = 1; i < N; i++) {
    if (A[i] == A[i - 1] + 1) {
      sum += C[i - 1];
    }
  }
  cout << sum << endl;
}
