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