import java.util.*

fun main(args: Array<String>) {
	val scanner = Scanner(System.`in`)
	val n = scanner.nextInt()
	val t = mutableListOf<Int>()
	var aBef = scanner.nextInt()
	for (i in 2..n){
		val ai = scanner.nextInt()
		if (ai==aBef+1) {
			t.add(aBef)
		}
		aBef = ai
	}
	var m = 0;
	for (i in 1..n){
		m += scanner.nextInt()
	}
	for (i in 1..n-1){
		val c = scanner.nextInt()
		if (t.contains(i)){
			m += c
		}
	}
	println(m)
}