#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  int t = 0, x = 0, y = 0;
  bool success = true;
  for (int i = 0; i < N; ++i) {
    int ti, xi, yi;
    std::cin >> ti >> xi >> yi;
    int delta_t = ti - t;
    int dst = std::abs(x - xi) + std::abs(y - yi);
    if (dst > delta_t || (delta_t - dst) % 2 != 0) {
      success = false;
      break;
    }
    t = ti;
    x = xi;
    y = yi;
  }
  if (success) {
    std::cout << "Yes" << std::endl;
  } else {
    std::cout << "No" << std::endl;
  }
  return 0;
}
