#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int total = 0, total1 = 0;
  cin >> n;
  int A[n], B[n], C[n - 2];
  for (int h = 0; h < n; h++) cin >> A[h];
  for (int k = 0; k < n; k++) cin >> B[k];
  for (int j = 0; j < n; j++) cin >> C[j];
  for (int m = 0; m < n; m++) total += B[m];
  if (A[n] != n)
    for (int t = 0; t < n - 2; t++) total += C[t];
  else
    for (int t = 0; t < n - 1; t++) total += C[t];
  cout << total;
}
