#include <bits/stdc++.h>
using namespace std;
const int N = 50;
int A[N], B[N], C[N];
int main() {
  int n, ans = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &A[i]);
  }
  for (int i = 0; i < n; i++) {
    scanf("%d", &B[i]);
    ans += B[i];
  }
  for (int i = 0; i < n - 1; i++) {
    scanf("%d", &C[i]);
  }
  for (int i = 1; i < n; i++) {
    if (A[i] - A[i - 1] == 1) {
      ans += C[i - 2];
    }
  }
  printf("%d", ans);
  return 0;
}
