#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, prev_x = 0, prev_y = 0, prev_t = 0, x, y, t;
  cin >> N;
  bool ans = true;
  for (int i = 0; i < N; i++) {
    cin >> t >> x >> y;
    int diff = (t - prev_t) - (abs(x - prev_x) + abs(y - prev_y));
    if (diff % 2 == 0 && diff >= 0) {
      prev_x = x;
      prev_y = y;
      prev_t = t;
    } else {
      ans = false;
      break;
    }
  }
  puts(ans ? "Yes" : "No");
}
