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