#include <bits/stdc++.h>
using namespace std;
int t[100005], x[100005], y[100005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int i, n, xc, yc, tc;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t[i] >> x[i] >> y[i];
  }
  xc = 0, yc = 0, tc = 0;
  for (i = 0; i < n; i++) {
    if (abs(x[i] - xc) + abs(y[i] - yc) <= (t[i] - tc) &&
        (abs(x[i] - xc) + abs(y[i] - yc)) % 2 == (t[i] - tc) % 2)
      tc = t[i], xc = x[i], yc = y[i];
    else {
      cout << "No" << '\n';
      return 0;
    }
  }
  cout << "Yes" << '\n';
  return 0;
}
