#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int t[N], a[N];
  int time, time1, x, y, x1, y1;
  for (int i = 0; i < (int)(N); i++) {
    cin >> time1 >> x1 >> y1;
    if (i == 0) {
      t[0] = time1;
      a[0] = abs(x1) + abs(y1);
      x = x1;
      y = y1;
      time = time1;
    } else {
      t[i] = time1 - time;
      a[i] = abs(x1 - x) + abs(y1 - y);
      x = x1;
      y = y1;
      time = time1;
    }
  }
  int check = 0;
  for (int i = 0; i < (int)(N); i++) {
    if (t[i] % 2 != a[i] % 2) {
      cout << "No" << endl;
      check = 1;
      break;
    } else if (t[i] < a[i]) {
      cout << "No" << endl;
      check = 1;
      break;
    }
  }
  if (check == 0) {
    cout << "Yes" << endl;
  }
}
