#include <bits/stdc++.h>
using namespace std;
int a[20];
int b[50];
int c[50];
int main() {
  int n, t1 = 0, t2 = 0, sum = 0;
  bool f = false;
  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++) {
    sum += b[a[i]];
    if (f == true)
      sum += t1;
    else
      f = true;
    if (i != n) t1 = c[a[i]];
  }
  cout << sum;
  return 0;
}
