#include <bits/stdc++.h>
using namespace std;
int n, t, x, y, px, py, pt;
int main() {
  scanf("%d", &n);
  while (n--) {
    scanf("%d%d%d", &t, &x, &y);
    int md = abs(px - x) + abs(py - y);
    if (md > t - pt) {
      puts("No");
      return 0;
    }
    if (md % 2 != (t - pt) % 2) {
      puts("No");
      return 0;
    }
    px = x;
    py = y;
    pt = t;
  }
  puts("Yes");
}
