#include<bits/stdc++.h>
using namespace std;
int n,f=1,t,x,y;
double  a[101],b[101],maxa=0.0,p;
int main(){
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>t>>x>>y;
		if(t<x+y)f=0;
		else if((t-x-y)%2==1)f=0;
	}
	if(f)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
			
}