fun main(args : Array<String>) {
    val n = readLine()!!.toInt()
    val aa = readLine()!!.split(" ").map { it.toInt() }.toMutableList()
    val bb = readLine()!!.split(" ").map { it.toInt() }.toMutableList()

    var aExtra = 0L
    aa.forEachIndexed { idx, a ->
        if (a > bb[idx]) {
            aExtra += 2L * (a - bb[idx])
            bb[idx] = a
        }
    }

    aa.forEachIndexed { idx, a ->
        if (a < bb[idx]) {
            aExtra -= (if ((bb[idx] - a) % 2 == 0) (bb[idx] - a) else (bb[idx] - a) - 1)
            aa[idx] = bb[idx]
        }
    }

    println(if (aExtra > 0L) "No" else "Yes")
}