import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    var preX = 0
    var preY = 0
    var preT = 0
    for (i in 1..n) {
        val t = sc.nextInt()
        val x = sc.nextInt()
        val y = sc.nextInt()
        val dist = Math.abs(x - preX) + Math.abs(y - preY)
        val diffT = t - preT
        if (dist > diffT || dist % 2 != diffT % 2) {
            println("No")
            return
        }
        preX = x
        preY = y
        preT = t
    }
    println("Yes")
}