function main(input) {
    input = input.split("\n").map(e => e.split(" ").map(ee => Number(ee)))
    const N = input[0][0]
    input.shift()
    let T = 0, X = 0, Y = 0
    let count = 0
    for (arr of input) {
        let t = arr[0], x = arr[1], y = arr[2]
        const diffx = Math.abs(x - X)
        const diffy = Math.abs(y - Y)
        const difft = Math.abs(t - T)
        const sum = Math.abs(x + y)
        if ((diffx + diffy <= difft) && (t % 2 == sum % 2)) {
            count += 1
        }
        T = t
        X = x
        Y = y
    }
    const mes = count==N ? "Yes" : "No"
    console.log(mes)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
