#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i;
  scanf("%d", &N);
  int t[N], x[N], y[N];
  for (i = 0; i < N; i++) {
    scanf("%d %d %d", &t[i], &x[i], &y[i]);
  }
  bool can = true;
  int check = t[0] - abs(x[0]) - abs(y[0]);
  if (check % 2 == 1 || check < 0) can = false;
  i = 1;
  while (can) {
    check = t[i] - t[i - 1] - (abs(x[i] - x[i - 1])) - (abs(y[i] - y[i - 1]));
    if (check % 2 == 1 || check < 0) can = false;
    i++;
    if (i == N) break;
  }
  if (can)
    printf("Yes");
  else
    printf("No");
}
