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