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