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