#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<int> a(n + 1), b(n + 1), c(n + 1);
  for (int i = 1; i <= n; i++) {
    cin >> a[i] >> b[i] >> c[i];
  }
  int x = 0, y = 0;
  for (int i = 1; i <= n; i++) {
    if (abs(b[i] - x + c[i] - y) % 2 != (a[i] - a[i - 1]) % 2) {
      cout << "No";
      return 0;
    }
    int dist = abs(b[i] - x) + abs(c[i] - y);
    if (dist > a[i] - a[i - 1]) {
      cout << "No";
      return 0;
    }
    x = b[i];
    y = c[i];
  }
  cout << "Yes";
  return 0;
}
