#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int meals_count;
  vector<int> eaten_numbers;
  vector<int> meal_satisfactions;
  vector<int> successive_bonuses;
  cin >> meals_count;
  for (int i = 0; i < meals_count; i++) {
    int en;
    cin >> en;
    eaten_numbers.push_back(en);
  }
  for (int i = 0; i < meals_count; i++) {
    int ms;
    cin >> ms;
    meal_satisfactions.push_back(ms);
  }
  for (int i = 0; i < meals_count; i++) {
    int sb;
    cin >> sb;
    successive_bonuses.push_back(sb);
  }
  int total_satisfaction = meal_satisfactions[eaten_numbers[0]];
  for (int i = 1; i < meals_count; i++) {
    if (eaten_numbers[i] == eaten_numbers[i - 1] + 1) {
      total_satisfaction += successive_bonuses[eaten_numbers[i - 1]];
    }
    total_satisfaction += meal_satisfactions[eaten_numbers[i]];
  }
  cout << total_satisfaction << endl;
  return 0;
}
