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