#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, m, endf = 0;
  cin >> n;
  vector<int> t(n);
  vector<int> x(n);
  vector<int> y(n);
  for (int i = 0; i < n; i++) {
    cin >> t.at(i) >> x.at(i) >> y.at(i);
    if (i == 0) {
      l = x.at(i) + y.at(i);
      m = t.at(i);
    } else {
      l = abs(x.at(i) - x.at(i - 1)) + abs(y.at(i) - y.at(i - 1));
      m = t.at(i) - t.at(i - 1);
    }
    if (m % 2 != l % 2 || m < l) {
      cout << "No" << endl;
      endf = 1;
      break;
    }
  }
  if (endf == 0) cout << "Yes" << endl;
}
