#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  int t[N + 1], x[N + 1], y[N + 1];
  t[0] = x[0] = y[0] = 0;
  for (int i = 0; i < N; i++) {
    scanf("%d %d %d", &t[i], &x[i], &y[i]);
  }
  int dt, dx, dy, check = 0;
  for (int k = 0; k < N; k++) {
    dt = t[k + 1] - t[k];
    dx = abs(x[k + 1] - x[k]);
    dy = abs(y[k + 1] - y[k]);
    if (dt < dx + dy || dt % 2 != (dx + dy) % 2) {
      check = 1;
      break;
    }
  }
  if (check == 1)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
