#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
    int n;
    scanf("%d",&n);
    int pt=0,px=0,py=0;
    int flag=1;
    while(n--)
    {
        int t,x,y;
        scanf("%d%d%d",&t,&x,&y);
        if(t-pt<abs(x-px)+abs(y-py))
            flag=0;
        else if((t-pt-(abs(x-px)+abs(y-py)))%2==1)
            flag=0;
        pt=t,px=x,py=y;
    }
    if(flag)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}
