#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t[100100], x[100100], y[100100];
  cin >> n;
  t[0] = 0;
  x[0] = 0;
  y[0] = 0;
  int j = 0;
  bool flag = false;
  for (int i = 1; i <= n; i++) {
    cin >> t[i] >> x[i] >> y[i];
  }
  for (int i = 1; i <= n; i++) {
    if (abs(((x[i] - x[j]) + (y[i] - y[j]))) > (t[i] - t[j])) {
      flag = false;
      break;
    }
    if (abs(((x[i] - x[j]) + (y[i] - y[j]))) % 2 == (t[i] - t[j]) % 2) {
      flag = true;
    } else {
      flag = false;
      break;
    }
    j = t[i];
  }
  if (flag == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
