#include <bits/stdc++.h>
int main(void) {
  int x = 0;
  int y = 1;
  int a = 0;
  int b = 0;
  int c = 0;
  int d = 0;
  int e = 0;
  int f = 0;
  int g = 0;
  int h = 0;
  int i = 0;
  scanf("%d", &x);
  while (x >= y) {
    scanf("%d %d %d", &a, &b, &c);
    g = abs(b - e);
    h = abs(c - f);
    if (a - d < g) {
      puts("No");
      return 0;
    } else {
      i = a - d - g;
      if (i < h) {
        puts("No");
        return 0;
      } else {
        if ((i - h) % 2) {
          puts("No");
          return 0;
        } else {
        }
      }
    }
    y++;
    d = a;
    e = b;
    f = c;
  }
  puts("Yes");
  return 0;
}
