#include <bits/stdc++.h>
using namespace std;
int n, a[25], b, c[25], ans;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &b);
    ans += b;
  }
  for (int i = 1; i <= n; i++) scanf("%d", &c[i]);
  for (int i = 1; i <= n; i++)
    if (a[i] == a[i - 1] + 1 && a[i] != 1) ans += c[i - 1];
  printf("%d\n", ans);
  return 0;
}
