#include<cstdio>
int main()
{
    int n,t,x,y;
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
    {
        scanf("%d%d%d",&t,&x,&y);
        if(x+y>t||(x+y)%2==0&&t%2==1||(x+y)%2==1&&t%2==0)
        {
            printf("No");
            return 0;
        }
    }
    printf("Yes");
}