import java.util.Scanner

object Main {
  def main(args: Array[String]) = {
    val sc = new Scanner(System.in)
    val N = sc.nextInt()
    val List(v, c) = List.fill(2, N)(sc.nextInt())
    val value = v.zip(c).map{
      case (a, b) => a - b
    }.filter(_ > 0).sum
    println(value)
  }
}