#include<iostream>
using namespace std;
int main() {
	int n, a[50], b[50], c[50], ans = 0;
	cin >> n; for (int i = 1; i <= n; i++)cin >> a[i]; for (int i = 1; i <= n; i++)cin >> b[i]; for (int i = 1; i < n; i++)cin >> c[i];
	for (int i = 1; i <= n; i++) { ans += b[a[i]]; if (a[i - 1] + 1 == a[i])ans += c[a[i] - 1]; }
	cout << ans << endl;
}