#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int A[n];
  int B[n];
  int C[n - 1];
  int count = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &A[i]);
  }
  for (int i = 0; i < n; i++) {
    scanf("%d", &B[i]);
  }
  for (int i = 0; i < n - 1; i++) {
    scanf("%d", &C[i]);
    printf("%d\n", C[i]);
  }
  for (int j = 0; j < n; j++) {
    count += B[j];
    if (j != 0 && j != n && A[j + 1] == A[j] + 1) {
      count += C[j - 1];
    }
  }
  printf("%d", count);
}
