#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> b(n);
  vector<int> c(n - 1);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    a[i]--;
  }
  for (int i = 0; i < n; ++i) cin >> b[i];
  for (int i = 0; i < n; ++i) cin >> c[i];
  int sum = 0;
  for (int i = 0; i < n; ++i) {
    sum += b[a[i]];
    if (i < (n - 1) && (a[i] - a[i - 1] + 1 == 0)) {
      sum += c[a[i - 1]];
    }
  }
  std::cout << sum << std::endl;
}
