#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  int a[n + 1], b[n + 1], c[n + 1];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> b[i];
  }
  for (int i = 0; i < n - 1; i++) {
    cin >> c[i];
  }
  sort(c, c + (n - 1));
  int j = 0;
  for (int i = 0; i < n - 1; i++) {
    if (a[i] < a[i + 1]) {
      sum = sum + b[i] + c[j];
      j++;
    } else {
      sum = sum + b[i];
    }
  }
  sum = sum + b[n - 1];
  cout << sum << endl;
  return 0;
}
