#include<bits/stdc++.h>
const int MAXN = 100000+15;
typedef long long ll;
using namespace std;
int main(){
  int T;
  scanf("%d",&T);
  int nowx = 0,nowy = 0,nowt = 0;
  int flag = 0;
  while(T--){
    int t,x,y;
    scanf("%d %d %d",&t,&x,&y);
    if(abs(x+y-nowx-nowy)>(t-nowt)){
      flag = 1;
      break;
    }else if((t-nowt-abs(x+y-nowx-nowy))%2!=0){
      flag = 1;
      break;
    }
    nowx = x;nowy = y;nowt = t;
  }
  if(flag)
  cout<<"No"<<endl;
  else
  cout<<"Yes"<<endl;

}
