import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()
    val v = Vector.fill(n)(sc.nextInt)
    val c = Vector.fill(n)(sc.nextInt)

    val answer = v.zip(c).filter(x => x._1 > x._2)
      .map(x => x._1 - x._2)
      .sum

    println(answer)
  }
}
