import kotlin.math.abs

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val array = Array(n) {
        readLine()!!.split(" ").map(String::toInt)
    }
    var can = true
    var t = 0
    var x = 0
    var y = 0
    for (a in array) {
        val dt = a[0] - t
        val dist = abs(a[1] - x) + abs(a[2] - y)
        if (dt < dist) can = false
        if (dt % 2 != dist % 2) can = false
        t = a[0]
        x = a[1]
        y = a[2]
    }
    if (can) println("Yes")
    else println("No")
}
