#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
using i64 = int64_t;
i64 mod = 1000000007;
int int_max = 2147483647;
int max_n = 1e5;
int main(int argc, char **argv) {
  int n;
  cin >> n;
  int ans{0};
  std::vector<int> a(n, 0), b(n, 0), c(n, 0);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < n; ++i) {
    int b;
    cin >> b;
    ans += b;
  }
  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) {
      ans += c[i - 1];
    }
  }
  cout << ans << endl;
  return 0;
}
