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