#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n), b(n), c(n);
  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; i++) cin >> c[i];
  int total = 0;
  for (int i = 0; i < n; i++) {
    total += b[i];
    if (a[i] + 1 == a[i - 1]) total += c[i - 1];
  }
  cout << total << endl;
}
