#include <bits/stdc++.h>
using namespace std;
int main(int argv, char** argc) {
  int N;
  int TP[100010][3];
  bool flag = false;
  cin >> N;
  TP[0][0] = 0;
  TP[0][1] = 0;
  TP[0][2] = 0;
  for (int i = 1; i < N + 1; i++) {
    cin >> TP[i][0];
    cin >> TP[i][1];
    cin >> TP[i][2];
  }
  for (int i = 1; i < N + 1; i++) {
    if ((TP[i][0] - TP[i - 1][0]) -
                (abs(TP[i][1] - TP[i - 1][1]) + abs(TP[i][2] - TP[i - 1][2])) >
            -1 &&
        ((TP[i][0] - TP[i - 1][0]) -
         (abs(TP[i][1] - TP[i - 1][1]) + abs(TP[i][2] - TP[i - 1][2]))) %
                2 ==
            0)
      flag = true;
    else
      flag = false;
  }
  if (true == flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
