#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int t1=0,x1=0,y1=0,t2,x2,y2;
	for(int i=1;i<=n;i++)
	{
		cin>>t2>>x2>>y2;
		int t=abs(t2-t1);
		int x=abs(x2+y2-x1-y1);
		if(x>t||(x-t)%2!=0)
		{
			cout<<"No"<<endl;
			return 0;
		}
		t1=t2;
		x1=x2;
		y1=y2;
	}
	cout<<"Yes"<<endl;
	return 0;
}