object Main extends App {
  var N = readInt
  var get = readLine.split(" ")
  var cost = readLine.split(" ")
  var sum = 0
  for(i <- 0 until N){
    if(get(i).toInt - cost(i).toInt > 0)
	    sum = sum + get(i).toInt - cost(i).toInt
  }
  
  println(sum.toInt)
}