#include<iostream>
using namespace std;

int N;
int A[22], B[22], C[22], sum;

int main() {
	cin >> N;
	for (int i = 0; i < N; i++)
		cin >> A[i];
	for (int i = 0; i < N; i++) {
		cin >> B[i];
		sum += B[i];
	}
	for (int i = 0; i < N-1; i++)
		cin >> C[i];
	for (int i = 0; i < N -1; i++) {
		if (A[i] + 1 == A[i + 1])
			sum += C[A[i]-1];
	}
	cout << sum;
}