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