object Main extends App {
	val n = scala.io.StdIn.readInt
	val v = scala.io.StdIn.readLine.split(" ").map(_.toInt)
	val c = scala.io.StdIn.readLine.split(" ").map(_.toInt)
	
	println(v.zip(c).map{case (a, b) => a - b}.filter(_ > 0).sum)
}