import java.util.Scanner

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val n = scanner.nextInt()
    val t = Array<Int>(n + 1, { 0 })
    val x = Array<Int>(n + 1, { 0 })
    val y = Array<Int>(n + 1, { 0 })
    for (i in (1..n)) {
        t[i] = scanner.nextInt()
        x[i] = scanner.nextInt()
        y[i] = scanner.nextInt()
    }

    for (i in (1..n)) {
        val d = Math.abs(x[i] - x[i - 1]) + Math.abs(y[i] - y[i - 1])
        val td = t[i] - t[i - 1]
        if (d % 2 != td % 2 || td < d) {
            println("No")
            return
        }
    }
    println("Yes")
}