#include <bits/stdc++.h>
using namespace std;
int i = 0;
int j = 0;
int main() {
  int n;
  int x;
  cin >> n;
  int sum = 0;
  int a[n];
  int b[n];
  int c[n - 1];
  for (; i < n; i++) {
    cin >> a[i];
    x = a[i];
  }
  for (; j < n; j++) {
    cin >> b[j];
    sum += b[j];
  }
  for (int t = 0; t < n - 1; t++) {
    cin >> c[t];
  }
  if (x != 1) sum += c[x - 2];
  if (x == 1) sum += b[n - 1];
  cout << sum;
  return 0;
}
