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

int main() {
  int N;
  cin >> N;
  int t,x,y,sum=0;
  for(int i=0;i<N;i++) {
    cin >> t >> x >> y;
    int jg=(x%2)+(y%2);
    //cout << jg << t%2 << endl;
    if(t>=x+y && t%2==jg%2) sum++;
    else break;
  }
  if(sum==N) cout << "Yes" << endl;
  else cout << "No" << endl;
}
