#include <bits/stdc++.h>
int main() {
  int n, a[21], b[21], c[21], ans = 0, num;
  scanf("%d ", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d ", &a[i]);
  }
  for (int i = 0; i < n; i++) {
    scanf("%d ", &b[i]);
    ans += b[i];
  }
  for (int i = 0; i < n - 1; i++) {
    scanf("%d ", &c[i]);
    ans += c[i];
  }
  printf("%d", ans - c[a[n - 2]]);
  return 0;
}
