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