#include <bits/stdc++.h>
using namespace std;

int a=0,b=0,n,t,x,y,z,l=0;

int main()
{
	cin>>n;
	
	for(int i=1;i<=n;i++)
	{
	cin>>t>>x>>y;
	z=(x-a)+(y-b);
	if(z<=t && (t-z)%2==0)  	l++;
    }
    
    if(l==n)	cout<<"Yes";
    else
    {
		cout<<"No";	
	}
	
	return 0;
}