fun main(args: Array<String>) {
    fun abs(x : Int) = if (x>0) x else -x

    val sc = java.util.Scanner(System.`in`)
    val N = sc.next().toInt()
    var flag = true
    var t1 = 0
    var x1 = 0
    var y1 = 0

    for (i in 0 until N){
        val t2 = sc.next().toInt()
        val x2 = sc.next().toInt()
        val y2 = sc.next().toInt()

        val time = t2 - t1
        val dist = abs(x2-x1) + abs(y2-y1)

        if (time < dist || (time-dist)%2 == 1) {
            flag = false
            break
        }
        t1 = t2; x1 = x2; y1 = y2
    }
    println(if (flag) "Yes" else "No")
}