function main( input ) {
    const args = input.split('\n');
    const N = parseInt(args[0], 10);
    let arrays = new Array(N+1);
	arrays[0] = [0, 0, 0];
    for(let i = 0; i < N; i++ ){
        arrays[i+1] = args[i+1].split(' ').map( n => parseInt(n, 10)) ;
    }
  
    let isOK = true;

    for(let i = 1; i < N+1; i++ ){
         const bt = arrays[i-1][0];
         const bx = arrays[i-1][1];
         const by = arrays[i-1][2];
         const at = arrays[i][0];
         const ax = arrays[i][1];
         const ay = arrays[i][2];

         let len = Math.abs( ax - bx ) + Math.abs( ay - by );
         if( ax === bx && ay === by ) {
             len = 2;
         }

         if( at - bt < len ) {
             isOK = false;
             break;
         }

         if( (at - bt) % 2 !== (len % 2) ) {
            isOK = false;
            break;      
         }
    }

    console.log( (isOK) ? 'Yes' : 'No' );
}

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