#include <bits/stdc++.h>
using namespace std;
int abs1(int k) { return max(k, -k); }
bool move(int x1, int y1, int x2, int y2, int time) {
  int al = abs1(x2 - x1) + abs1(y2 - y1);
  if (time < al) return false;
  if ((time - al) % 2) return false;
  return true;
}
int N, xl, yl, xc, yc, tl, tc;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> tc >> xc >> yc;
    if (!move(xl, yl, xc, yc, tc - tl)) {
      if (0)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
      return 0;
    }
    xl = xc;
    yl = yc;
    tl = tc;
  }
  if (1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
