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