#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int point;
  int sati = 0;
  vector<int> order;
  vector<int> addi;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> order.at(i);
  }
  for (int i = 0; i < N; i++) {
    cin >> point;
    sati += point;
  }
  for (int i = 0; i < N - 1; i++) {
    cin >> addi.at(i);
    if (order.at(i) + 1 == order.at(i + 1)) {
      sati += addi.at(i);
    }
  }
  cout << sati << endl;
}
