fun readInts() = readLine()!!.split(' ').map(String::toInt)

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    var ans = true
    var preT = 0
    var preX = 0
    var preY = 0
    repeat(n) {
        val (t, x, y) = readInts()
        val dt = t - preT
        val dr = Math.abs(x - preX) + Math.abs(y - preY)
        ans = ans && dr <= dt && (dt - dr) % 2 == 0
        preT = t
        preX = x
        preY = y
    }
    println(if (ans) "Yes" else "No")
}
