#import <Foundation/Foundation.h>
int main() {
	int n;
	scanf("%d",&n);
	int *a = (int*)malloc(sizeof(int)*n);
	int *b = (int*)malloc(sizeof(int)*n);
	int *c = (int*)malloc(sizeof(int)*(n-1));
	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);
	}
	int prev=-2;
	int sum=0;
	for(int i=0;i<n;i++){
		int j=a[i]-1;
		sum += b[j];
		if(j-prev==1){
			sum+=c[prev];
		}
		prev=j;
	}
	printf("%d\n",sum);
}