fun main(args: Array<String>) {
	readLine()
	val v = (readLine() ?: return).split(" ").map { it.toInt() }.toIntArray()
	val c = (readLine() ?: return).split(" ").map { it.toInt() }.toIntArray()
	var sum = 0
	for (i in v.indices) if (v[i] - c[i] > 0) sum += v[i] - c[i]
	println(sum)
}