#include <stdio.h>
#include <iostream>
using namespace std;

int x,y,t;
int xx,yy,tt;
int n;

int Abs(int k)
{
    if (k>=0) return k;
    else return -k;
}

int main()
{
    scanf ("%d",&n);
    for (int i=1;i<=n;i++)
        {
        scanf ("%d %d %d",&tt,&xx,&yy);
        if ((Abs(xx-x)+Abs(yy-y)-(tt-t))%2!=0 || Abs(xx-x)+Abs(yy-y)>tt-t) {printf ("No"); return 0;}
        t=tt;
        x=xx;
        y=yy;
        }
    printf ("Yes");

}
