import java.util.*

fun main(args: Array<String>) {
    Scanner(System.`in`).use { sc ->
        val n = sc.nextInt()

        var tp = 0
        var xp = 0
        var yp = 0
        for (i in 0 until n) {
            val t = sc.nextInt()
            val x = sc.nextInt()
            val y = sc.nextInt()

            val step = t - tp
            val distance = Math.abs(x - xp) + Math.abs(y - yp)
            val rem = step - distance
            if (rem < 0 || rem % 2 == 1) {
                println("No")
                return
            }

            tp = t
            xp = x
            yp = y
        }
        println("Yes")
    }
}
