#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<vector<int>> vec(N);
  for (int i = 0; i < N; i++) {
    vector<int> vec2(3);
    for (int j = 0; j < 3; j++) cin >> vec2.at(j);
    vec.at(i) = vec2;
  }
  bool p = true;
  for (int i = 0; i < N; i++) {
    int num = vec.at(i).at(1) + vec.at(i).at(2);
    bool p2 = false;
    for (int j = 0; j <= vec.at(i).at(0); j++) {
      if (j * 1 + (vec.at(i).at(0) - j) * (-1) == num) {
        p2 = true;
        break;
      }
    }
    if (!p2) {
      p = false;
      break;
    }
  }
  if (p)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
