#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> t(n + 1);
  vector<int> x(n + 1);
  vector<int> y(n + 1);
  t[0] = 0;
  x[0] = 0;
  y[0] = 0;
  bool flg = 1;
  for (int i = 1; i <= n; i++) cin >> t[i] >> x[i] >> y[i];
  for (int i = 0; i < n; i++) {
    int time = t[i + 1] - t[i];
    int d = abs(x[i] - x[i + 1]) + abs(y[i] - y[i + 1]);
    if (time < d || time % 2 != d % 2) flg = 0;
  }
  if (flg)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
