#include <bits/stdc++.h>
int main() {
  int t[100000], x[100000], y[100000];
  int N;
  scanf("%d", &N);
  for (int k = 0; k < N; k++) {
    scanf("%d %d %d", &t[k], &x[k], &y[k]);
  }
  if (t[0] <= abs(x[0]) + abs(y[0]) ||
      (abs(x[0]) + abs(y[0]) - t[0]) % 2 == 1) {
    printf("No");
    return 0;
  }
  if (N == 1) {
    printf("Yes");
    return 0;
  }
  for (int k = 1; k < N; k++) {
    if (t[k] - t[k - 1] <= abs(x[k] - x[k - 1]) + abs(y[k] - y[k - 1]) ||
        (abs(x[k] - x[k - 1]) + abs(y[k] - y[k - 1]) - (t[k] - t[k - 1])) % 2 ==
            1) {
      printf("No");
      return 0;
    }
    printf("Yes");
    return 0;
  }
}
