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