#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  int t[n];
  int a[n];
  int b[n];
  for (int i = 0; i < n; i++) {
    cin >> t[i] >> a[i] >> b[i];
  }
  int x = 0;
  for (int j = 0; j < n; j++) {
    if (abs(a[j]) + abs(b[j]) <= t[j] &&
        (abs(a[j]) + abs(b[j])) % 2 == t[j] % 2)
      x++;
    else
      break;
  }
  if (x == n)
    cout << "yes";
  else
    cout << "no";
}
