#include <bits/stdc++.h>
const long long MOD = 1000000007;
const long long INF = 1010000000;
const double EPS = 1e-10;
using namespace std;
const pair<long long, long long> fd[] = {make_pair(1, 0), make_pair(-1, 0),
                                         make_pair(0, 1), make_pair(0, -1)};
signed main() {
  long long n;
  cin >> n;
  long long ans = 0;
  long long a[20], c[20];
  for (long long i = (0); i < (n); i++) cin >> a[i];
  for (long long i = (0); i < (n); i++) {
    long long b;
    cin >> b;
    ans += b;
  }
  for (long long i = (0); i < (n - 1); i++) cin >> c[i];
  for (long long i = (0); i < (n - 1); i++) {
    if (a[i] + 1 == a[i + 1]) ans += c[a[i]];
  }
  cout << ans << endl;
}
