#include<bits/stdc++.h>
using namespace std;
int main() {
	int n,x[100001],y[100001],a[100001];
	cin>>n;
	for(int i=1; i<=n; i++) cin>>a[i]>>x[i]>>y[i];
	for(int i=1; i<=n; i++)
		if(x[i]+y[i]>a[i]||(a[i]-x[i]-y[i])%2!=0) {
			cout<<"No";
			goto no;
		}
	cout<<"Yes";
	no:
	return 0;
}