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

int main() {
  ll  n,f=0;
  cin>>n;
  for(ll i=1;i<=n;i++)
  {
    ll t,x,y,z;
    cin>>t>>x>>y;
    z=x+y;
    if(!(t%2==z%2&&t>=z))
    {
       f=1;
    }

  }
  if(f)
  {
    cout<<"No"<<endl;
  }
  else
  {
    cout<<"Yes"<<endl;
  }
}