#include <bits/stdc++.h>
int delta_t(int *t) { return abs(t[1] - t[0]); }
int mh_distance(int *x, int *y) { return abs(x[1] - x[0]) + abs(y[1] - y[0]); }
char *yes_no(int *t, int *x, int *y, int N) {
  int i;
  for (i = 0; i <= N; i++) {
    int cur_t[2] = {t[i], t[i + 1]};
    int cur_x[2] = {x[i], x[i + 1]};
    int cur_y[2] = {y[i], y[i + 1]};
    int d_t = delta_t(cur_t);
    int mh_d = mh_distance(cur_x, cur_y);
    if (d_t < mh_d || d_t % 2 != mh_d % 2) {
      return "No";
    }
  }
  return "Yes";
}
int main() {
  int i, N;
  scanf("%d", &N);
  int t[100000] = {0}, x[100000] = {0}, y[100000] = {0};
  for (i = 1; i <= N; i++) {
    scanf("%d %d %d", &t[i], &x[i], &y[i]);
  }
  char *result = yes_no(t, x, y, N);
  printf("%s", result);
  return 0;
}
