#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, sum = 0;
  int A[20], C[20];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> A[i];
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    sum += tmp;
  }
  for (int i = 0; i < N - 1; i++) cin >> C[i];
  for (int i = 0; i < N - 1; i++)
    if ((A[i + 1] - A[i]) == 1) sum += C[i];
  cout << sum << endl;
  return 0;
}
