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