const check = (t,x,y)=>{
    const xy = x+y;
    if (t<xy) return false;
    return t%2 === xy%2;
};
function Main(input) {
    [,...input] = input.split('\n').map(line=>line.split(' ').map(data=>parseInt(data)));
    const result = input.map(data=>check(...data)).every(data=>data);
    console.log(result?'Yes':'No');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));