#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a, b, c;
  vector<int> t(100010), x(100010), y(100010);
  t[0] = 0;
  x[0] = 0;
  y[0] = 0;
  for (int i = 1; i <= N; i++) {
    cin >> t[i] >> x[i] >> y[i];
  }
  string ans = "Yes";
  for (int i = 0; i < N; i++) {
    a = t[i + 1] - t[i];
    b = abs(x[i + 1] - x[i]);
    c = abs(y[i + 1] - y[i]);
    if (a < b + c) {
      ans = "No";
    }
    if ((a - b - c) % 2 == 1) {
      ans = "No";
    }
  }
  cout << ans << endl;
}
