#include <bits/stdc++.h>
using namespace std;
int a[25];
bool b[25];
int main() {
  int N;
  cin >> N;
  int ans = 0;
  a[0] = -1;
  for (int i = 1; i <= N; i++) {
    cin >> a[i];
    b[i - 1] = false;
    if (a[i] == a[i - 1] + 1) b[i - 1] = true;
  }
  for (int i = 1; i <= N; i++) {
    int k;
    cin >> k;
    ans += k;
  }
  for (int i = 1; i <= (N - 1); i++) {
    int k;
    cin >> k;
    if (b[i]) ans += k;
  }
  cout << ans << endl;
}
