#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, t[100010] = {}, x[100010] = {}, y[100010] = {};
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> t[i] >> x[i] >> y[i];
  for (int i = 1; i <= n; i++) {
    long long int X, Y, T;
    X = abs(x[i - 1] - x[i]);
    Y = abs(y[i - 1] - y[i]);
    T = t[i] - t[i - 1];
    if (X + Y > T) {
      cout << "No" << endl;
      return 0;
    }
    T -= X;
    if (T < Y) {
      cout << "No" << endl;
      return 0;
    } else {
      if (Y % 2 != T % 2) {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
  return 0;
}
