#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long a;
  cin >> a;
  vector<long long> b(a);
  vector<long long> c(a);
  vector<long long> d(a - 1);
  for (long long i = 0; i < a; i++) cin >> b.at(i);
  for (long long i = 0; i < a; i++) cin >> c.at(i);
  for (long long i = 0; i < a - 1; i++) cin >> d.at(i);
  long long e = 0;
  for (long long i = 0; i < a; i++) e += c.at(i);
  for (long long i = 0; i < a - 1; i++) e += d.at(i);
  if (b.at(a - 1) == a)
    cout << e;
  else
    cout << e - d.at(b.at(a - 1) - 1);
}
