#include <iostream>

int main() {
  	int n;
  	std::cin >> n;
  	std::vector<int> a(n), b(n), c(n-1);
  
  	for(int i = 0; i < n; ++i)
    	std::cin >> a[i];
  	for(int i = 0; i < n; ++i)
    	std::cin >> b[i];
  	for(int i = 0; i < n-1; ++i) {
    	std::cin >> c[i];
      
    int prev_dish = -1;
    int points = 0; 
    for(int i = 0; i < n; ++i) {
    	points += b[a[i] - 1];
      	if(prev_dish != -1 && a[i] == prev_dish + 1)
          points += c[prev_dish-1];
      	prev_dish = a[i];
    }
    
    std::cout << points << "\n";
}