#include <bits/stdc++.h>
using namespace std;
vector<int> t(200000);
vector<int> x(200000);
vector<int> y(200000);
int N;
bool solve() {
  for (int i = 1; i < N + 1; ++i) {
    int dist = abs(x[i] - x[i - 1]) + abs(y[i] - y[i - 1]);
    int time = t[i] - t[i - 1];
    if (time < dist) return false;
    if (dist % 2 != time % 2) return false;
  }
  return true;
}
int main(int argc, char **argv) {
  cin >> N;
  t[0] = x[0] = y[0] = 0;
  for (int i = 0; i < N; ++i) cin >> t[i + 1] >> x[i + 1] >> y[i + 1];
  std::cout << (solve() ? "Yes" : "No") << std::endl;
}
