object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val ls = in.map(_.split(' ').map(_.toInt))
  val V = ls(1)
  val C = ls(2)
  val ret = V.indices.map( i => V(i)-C(i) ).filter(_ > 0).sum
  println(ret)
}
