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