data class Point(val t: Int, val x: Int, val y: Int)

fun main(args: Array<String>) {
    val n = readLine()?.toInt() ?: return
    val points = Array(n + 1) {
        if (it == 0) {
            Point(0, 0, 0)
        } else {
            val (t, x, y) = readLine()?.split(" ")?.map { n -> n.toInt() } ?: return
            Point(t, x, y)
        }
    }

    for (t in 0 until n) {
        val dt = points[t + 1].t - points[t].t
        val dist = Math.abs(points[t + 1].x - points[t].x) +
                Math.abs(points[t + 1].y - points[t].y)
        if (dt < dist || dt % 2 != dist % 2) {
            println("No")
            return
        }
    }
    println("Yes")
}