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