"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    const plan = arg.slice(1, N + 1);
    
    let x = 0;
    let y = 0;
    let t = 0;
    
    for(let i in plan) {
        t  = parseInt(plan[i].split(" ")[0]) - t;
        let dx = parseInt(plan[i].split(" ")[1]);
        let dy = parseInt(plan[i].split(" ")[2]);
        
        let distance = Math.abs(dx - x) + Math.abs(dy - y);
        
        if(distance > t || (distance - t) % 2 !== 0) {
            console.log("No");
            return;
        }
        
        x = dx;
        y = dy;
    }
    
    console.log("Yes");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));