#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  int t1 = 0, t2 = 0;
  int a1 = 0, a2 = 0;
  int b1 = 0, b2 = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> t1 >> a1 >> b1;
    int s = abs(a1 - a2) + abs(b1 - b2);
    if (s > (t1 - t2) || ((s % 2) != ((t1 - t2) % 2))) {
      cout << "No" << endl;
      return 0;
    }
    a2 = a1;
    b2 = b1;
    t2 = t1;
  }
  cout << "Yes" << endl;
  return 0;
}
