import java.io.BufferedReader
import java.io.InputStreamReader

fun main(args: Array<String>) {
    val br = BufferedReader(InputStreamReader(System.`in`))
    val n = br.readLine().toInt()
    val node = mutableListOf<Triple<Int, Int, Int>>()
    node.add(Triple(0, 0, 0))
    for (i in 1..n) {
        val d = br.readLine().split(' ')
                .map { it.toInt() }
        node.add(Triple(d[0], d[1], d[2]))
    }
    println(if (judge(node, 1, node.size - 1)) "Yes" else "No"
    )
}

fun judge(node: List<Triple<Int, Int, Int>>, index: Int, limit: Int): Boolean {
    val current = node[index]
    val pre = node[index - 1]
    val step = current.first - pre.first
    val x = current.second - pre.second
    val y = current.third - pre.third
    val move = Math.abs(x) + Math.abs(y)
    if (move > step) {
        return false
    }
    return (move - step) % 2 == 0 && if (index < limit) judge(node, index + 1, limit) else true
}

fun err(print: Any) {
    System.err.println(print)
}