#include <bits/stdc++.h>
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.at(i) >> x.at(i) >> y.at(i);
  }
  int tsum = 0, xysum = 0;
  bool can = true;
  for (int i = 0; i < n; i++) {
    tsum = t.at(i) - tsum;
    xysum = x.at(i) + y.at(i) - xysum;
    xysum = abs(xysum);
    if (tsum >= xysum) {
      can = false;
    }
    if (xysum % 2 == tsum % 2) {
      can = false;
    }
  }
  if (can)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
