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