#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i, t, x, y, t_old = 0, x_old = 0, y_old = 0;
  bool flag = true;
  cin >> N;
  for (i = 0; i < N; i++) {
    cin >> t >> x >> y;
    if (abs(x - x_old) + abs(y - y_old) > t - t_old ||
        abs(abs(x - x_old) + abs(y - y_old) - t + t_old) % 2 == 1) {
      flag = false;
      cout << "No" << endl;
      return 0;
    }
    t_old = t;
    x_old = x;
    y_old = y;
  }
  if (flag) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
