object Main {

  def main(args: Array[String]): Unit = {
    val n = scala.io.StdIn.readLine().toInt
    val v = scala.io.StdIn.readLine().split(" ").map(_.toInt)
    val c = scala.io.StdIn.readLine().split(" ").map(_.toInt)
    println((0 until n).map(i => v(i) - c(i)).filter(_ > 0).sum)
  }

}