#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  int pt = 0, px = 0, py = 0;
  for (int i = 0; i < N; ++i) {
    int t, x, y;
    std::cin >> t >> x >> y;
    if (std::abs(x - px) + std::abs(y - py) <= t - pt) {
    } else {
      std::cout << "no" << std::endl;
      return 0;
    }
    px = x;
    py = y;
    pt = t;
  }
  std::cout << "yes" << std::endl;
  return 0;
}
