#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class T>
inline T sqr(T x) {
  return x * x;
}
const double EPS = 1e-10;
const double PI = acos(-1.0);
int main() {
  int n;
  cin >> n;
  vector<int> a(n), b(n), c(n - 1);
  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 ans{0};
  ans += accumulate(b.begin(), b.end(), 0);
  for (int i = (0); i < (n - 1); ++i) {
    if (a[i + 1] - a[i] == 1) ans += c[i + 1];
  }
  cout << ans << endl;
  return 0;
}
