#include <iostream>
#include <vector>

using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int> a;
	vector<int> b;
	vector<int> c;
	int points = 0;
	for (int i = 0; i < n; ++i) {
		int input;
		cin >> input;
		a.push_back(input);
	}
	for (int i = 0; i < n; ++i) {
		int input;
		cin >> input;
		b.push_back(input);
	}
	for (int i = 0; i < n - 1; ++i) {
		int input;
		cin >> input;
		c.push_back(input);
	}
	points += b[a[0] - 1];
	for (int i = 1; i < n; ++i) {
		points += b[a[i] - 1];
		if (a[i] - a[i - 1] == 1) {
			points += c[a[i - 1] - 1];
		}
	}
	cout << points;

}