import scala.io.StdIn._
object Main extends App {

  val n = readInt()
  val v = readLine.trim.split(' ').map(_.toInt)
  val c = readLine.trim.split(' ').map(_.toInt)
  println(v.zip(c).collect{case (i, j) if i > j ⇒ i - j}.sum)
}
