fun main(args : Array<String>) {
    val n = readLine()!!.toInt()

    var lastT = 0
    var lastX = 0
    var lastY = 0
    var failed = false

    repeat(n) {
        val (t, x, y) = readLine()!!.split(" ").map{ it.toInt() }
        val diffT = t - lastT
        val diffX = Math.abs(lastX - x)
        val diffY = Math.abs(lastY - y)
        val rest = diffT - diffX - diffY

        if (rest < 0 || rest % 2 != 0) {
            failed = true
        }

        lastT = t
        lastX = x
        lastY = y
    }

    println(if (failed) "No" else "Yes")
}