import java.util.Scanner

val sc = Scanner(System.`in`)
val n = sc.nextInt()

fun main(args: Array<String>) {

    var vlist: MutableList<Int> = mutableListOf()
    for (i in 0 until n) {
        vlist.add(sc.nextInt())
    }

    var clist: MutableList<Int> = mutableListOf()
    for (i in 0 until n) {
        clist.add(sc.nextInt())
    }

    var total = 0
    for (i in 0 until n) {
        if (vlist[i] - clist[i] > 0) {
            total += vlist[i] - clist[i]
        }
    }
    print(total)
}