#include <bits/stdc++.h>
int main() {
  const int N_MAX = 100000;
  int N = 1;
  int t, x, y = 0;
  bool possible = true;
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    scanf("%d%d%d", &t, &x, &y);
    possible = x + y <= t;
    if (possible) {
      possible = (x + y + t) % 2 == 0;
    }
    if (!possible) {
      break;
    }
  }
  if (possible)
    puts("Yes");
  else
    puts("No");
  return 0;
}
