object Main {
  def main(args:Array[String]) = {
    var sc = new java.util.Scanner(System.in)
    var n = sc.nextInt
    var v = Array.fill(n)(sc.nextInt())
    var c = Array.fill(n)(sc.nextInt())
    var sum = 0
    for(i <- 0 until n){
        if(v(i) - c(i) > 0){
            sum += v(i) - c(i)
        }
    }
    println(sum)
  }
}