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