#include <bits/stdc++.h>
using namespace std;
const long mod = 1e9 + 7;
const int size = 2e5;
const int INF = 1e9;
int main() {
  int N;
  cin >> N;
  int A[N], B[N], C[N - 1];
  int 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;
}
