#include <bits/stdc++.h>
using namespace std;
const int N = 52;
int n;
int a[N], b[N], c[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  freopen("ch.inp", "r", stdin);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  int kq = 0;
  for (int i = 1; i <= n; i++) cin >> b[i], kq += b[i];
  for (int i = 1; i <= n; i++) cin >> c[i];
  int pre = -1;
  for (int i = 1; i <= n; i++) {
    if (a[i] - pre == 1) kq += c[pre];
    pre = a[i];
  }
  cout << kq + 1;
}
