#include <bits/stdc++.h>
int main() {
  int n, t = 0, x = 0, y = 0;
  for (scanf("%d", &n); n--;) {
    int x0, y0, t0;
    scanf("%d %d %d", &t0, &x0, &y0);
    {
      int dt = t0 - t, dx = x0 - x, dy = y0 - y;
      if (dx + dy < dt && (dt - dx - dy) % 2 == 0) {
        printf("Yes");
        return 0;
      }
    }
    t = t0;
    x = x0;
    y = y0;
  }
  printf("No");
  return 0;
}
