#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,n,tol,tim;
	cin>>n;
	for(int i=0;i<n;++i){
		cin>>tim>>a>>b;
		tol=a+b;
		if((tim-tol)%2==1||tim<tol){
			cout<<"No"<<endl;
			return 0;
		}
	}
	cout<<"Yes"<<endl;
	return 0;
} 