#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> t(110000), x(110000), y(110000);
  for (int i = 0; i < N; i++) {
    cin >> t.at(i + 1) >> x.at(i + 1) >> y.at(i + 1);
  }
  bool flag = true;
  for (int i = 0; i < N; i++) {
    int dt = t.at(i + 1) - t.at(i);
    int dist = abs(x.at(i + 1) - x.at(i)) + abs(y.at(i + 1) - y.at(i));
    if (dt < dist) flag = false;
    if (dt % 2 != dist % 2) flag = false;
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
