import scala.io.{StdIn => in}

object Main extends App {
  val n = in.readInt
  val v = in.readLine.split(" ").map(_.toInt)
  val c = in.readLine.split(" ").map(_.toInt)

  val ans = (0 until n).map(i => v(i) - c(i)).filter(_ > 0).sum
  println(ans)
}