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