#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  bool ok = false, isok = true;
  cin >> a;
  if (a == 0) {
    cout << "No";
    system("pause");
    return 0;
  }
  for (int i = 0; i < a; i++) {
    int x, y, z;
    cin >> x >> y >> z;
    for (int i = x; i >= y + z && x + y + z != 0; i -= 2)
      if (y + z == i) ok = true;
    if (ok == false) isok = false;
  }
  if (isok == true)
    cout << "Yes";
  else
    cout << "No";
  system("pause");
  return 0;
}
