#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, A[53], b, c[54];
  int 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);
    ans += b;
  }
  for (int i = 2; i < n + 1; i++) {
    scanf("%d", &c[i]);
  }
  for (int i = 1; i < n; i++) {
    if (A[i - 1] + 1 == A[i]) {
      ans += c[i];
    }
  }
  printf("%d\n", ans);
}
