#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int t[n], a[n], b[n];
  bool ans = true;
  for (int i = 0; i < n; i++) {
    cin >> t[i] >> a[i] >> b[i];
    if ((t[i] < (a[i] + b[i])) or ((t[i] % 2) != ((a[i] + b[i]) % 2)))
      ans = false;
  }
  if (ans)
    std::cout << "Yes" << std::endl;
  else
    std::cout << "No" << std::endl;
  return 0;
}
