#include<bits/stdc++.h>
using namespace std;

int n,ans=1,x,y,t,tx,ty,tt;

int main(){
	cin>>n;
	for(int i=1,d;i<=n;++i)
	{
		scanf("%d%d%d",&tt,&tx,&ty);
		d=fabs(tx-x)+fabs(ty-y);
		if(!(tt-t>=d&&(tt-t-d)%2==0)) {ans=0; break;}
		x=tx; y=ty; t=tt;
	}
	if(ans) cout<<"Yes"; else cout<<"No";
}