#include <iostream>
using namespace std;
int main()
{
	int n,t,x,y,F=0;
	cin>>n;
	for (int i=1;i<=n;i++){
		cin>>t>>x>>y;
		if (x+y<=t && (t-x-y)%2==0) continue;
		else F=1;
		
	}
	if (F==0) cout<<"Yes";
	else	  cout<<"No";
	return 0;
}