#include <bits/stdc++.h>
int main(void) {
  int n, kihon = 0;
  int bonus = 0;
  scanf("%d", &n);
  int a[100], b[100], c[100];
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (int i = 0; i < n; i++) {
    scanf("%d", &b[i]);
    kihon += b[i];
  }
  for (int i = 0; i < n - 1; i++) {
    scanf("%d", &c[i]);
  }
  for (int i = 0; i < n; i++) {
    if (a[i + 1] - a[i] == 1) {
      bonus += c[i];
    }
  }
  printf("%d", kihon + bonus);
  return 0;
}
