#include <bits/stdc++.h>
int main() {
  int N;
  int i, j;
  scanf("%d", &N);
  int dish[N];
  int points[N];
  int add[N];
  for (i = 0; i < N; i++) {
    scanf("%d", &dish[i]);
  }
  for (i = 0; i < N; i++) {
    scanf("%d", &points[i]);
  }
  add[0] = 0;
  for (i = 1; i < N; i++) {
    scanf("%d", &add[i]);
  }
  int sum = 0;
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      if (i == 0) {
        if (dish[i] == j + 1) sum = sum + points[j];
      } else {
        if (dish[i] == j + 1) sum = sum + points[j] + add[j];
      }
    }
  }
  printf("%d", sum);
  return 0;
}
