extension String: CollectionType {}

let a:Int = Int(readLine()!)!
let b: [Int] = readLine()!.split(" ").map { Int($0)! }
let c: [Int] = readLine()!.split(" ").map { Int($0)! }

var d: [Int] = []
for var i = 0; i < a; i += 1 {
  d.append( b[i] - c[i] )
}

var o = 0
for var i = 0; i < a; i += 1 {
  if( d[i] > 0 ) {
  	o += d[i]
  }
}
print(o)