#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  int t_prev, x_prev, y_prev;
  int t, x, y;
  bool ans = true;
  cin >> num;
  t_prev = x_prev = y_prev = 0;
  for (int i = 0; i < num; i++) {
    cin >> t >> x >> y;
    if (abs(x - x_prev) + abs(y - y_prev) > t - t_prev) {
      ans = false;
      break;
    }
  }
  if (ans == true) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
