#include<stdlib.h>
int main(){
  int n,t[n],x[n],y[n],flag = 1;
  scanf("%d",&n);
  for(int i = 0;i<n;i++){
    scanf("%d %d %d",&t[i],&x[i],&y[i]);
  }
  for(int i = 0;i<n;i++){
    if(i >= 1){
      t[i] = abs(t[i] - t[i-1]);
      x[i] = abs(x[i] - x[i-1]);
      y[i] = abs(y[i] - y[i-1]);
    }
    if(x[i]+y[i] <= t[i]){
      if((t[i]-x[i]-y[i])%2 == 1) flag = 0;
      else flag = 1;
    }
    else flag = 0;
  }
  if(flag == 1) printf("Yes");
  else printf("No");
  return 0;
}
