#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, T, X, Y;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> T >> X >> Y;
    if (T >= X + Y && (T - X - Y) % 2 == 0) {
      continue;
    } else {
      cout << "No" << endl;
      exit(0);
    }
  }
  cout << "Yes" << endl;
}
