#include <bits/stdc++.h>
int main(void) {
  int food, score, scoresum = 0, bonus, order, prev = 0, bonus_flag[20];
  scanf("%d", &food);
  for (int i = 0; i < food; i++) {
    scanf("%d", &order);
    if (order == prev + 1) bonus_flag[prev] = 1;
    prev = order;
  }
  for (int i = 0; i < food; i++) {
    scanf("%d", &score);
    scoresum += score;
  }
  for (int i = 1; i < food; i++) {
    scanf("%d", &bonus);
    if (bonus_flag[i] == 1) {
      scoresum += bonus;
    }
  }
  printf("%d", scoresum);
  puts("");
}
