package main

import (
	"fmt"
)

func main() {
	var n, st int
	var a []int
	var b []int
	var c []int
	for i := 0; i < n; i++ {
		fmt.Scan(&a[i])
	}
	for i := 0; i < n; i++ {
		fmt.Scan(&b[i])
		st += b[i]
	}
	for i := 0; i < n-1; i++ {
		fmt.Scan(&c[i])
	}
	for i := 1; i < n; i++ {
		if a[i] == a[i-1]-1 {
			st += c[i]
		}
	}
	fmt.Println(st)
}
