#include <iostream>
#include <cmath>
using namespace std;

int x,y,t;
int n,a,b,c;

int main()
{
	cin>>n;
	for(int i=1;i<=n;i++) {
		cin>>c>>a>>b;
		int sum=abs(a-x)+abs(b-y),ti=c-t;
		if(sum>ti||(sum%2!=ti%2)) { cout<<"No"<<endl; return 0; }
		x=a,y=b,t=c;
	}
	cout<<"Yes"<<endl;
	return 0;
}