#include <bits/stdc++.h>
using namespace std;
int n, i, x, y, t;
vector<pair<pair<int, int>, int> > vpp;
pair<int, int> pre;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t >> x >> y;
    vpp.push_back(make_pair(make_pair(x, y), t));
  }
  sort(vpp.begin(), vpp.end());
  int tt = 0;
  for (int i = 0; i < n; i++) {
    int dist = abs(pre.first - vpp[i].first.first) +
               abs(pre.second - vpp[i].first.second);
    tt = vpp[i].second - tt;
    if (dist <= tt && dist % 2 == tt % 2) return cout << "Yes", 0;
    pre = vpp[i].first;
  }
  cout << "No";
  return 0;
}
