#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  std::cin >> N;
  std::vector<int> x(110000);
  std::vector<int> y(110000);
  std::vector<int> t(110000);
  x[0] = 0;
  y[0] = 0;
  t[0] = 0;
  for (int i = 1; i < N + 1; ++i) {
    std::cin >> t[i] >> x[i] >> y[i];
  }
  bool can = true;
  for (int i = 1; i < N + 1; ++i) {
    int time = t[i] - t[i - 1];
    int dis = abs(x[i] - x[i - 1]) + abs(y[i] - y[i - 1]);
    if (((time - dis) % 2 != 0) || (time - dis < 0)) {
      can = false;
    }
  }
  if (can)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
