object Main{
	def main(args:Array[String]){
		val s = new java.util.Scanner(System.in)
		val n=s.nextInt

		val a=Array.fill(n)(s.nextInt)
		val b=Array.fill(n)(s.nextInt)

		println((0 to n-1).map(i=>a(i)-b(i)).filter(i=>i>0).sum)
	}
}