#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[21];
  int b[21];
  int c[21];
  map<int, int> mp;
  for (int i = (int)1; i < (int)(n + 1); i++) {
    cin >> a[i];
  }
  int sum = 0;
  for (int i = (int)1; i < (int)(n + 1); i++) {
    cin >> b[i];
    sum += b[i];
  }
  for (int i = (int)1; i < (int)(n); i++) cin >> c[i];
  for (int i = 1; i <= n - 1; i++) {
    if (a[i + 1] == a[i] + 1) {
      sum += c[i];
    }
  }
  int ans = sum;
  cout << ans << endl;
  return 0;
}
