#include <bits/stdc++.h>
using namespace std;
int t[100], x[100], y[100], n, i;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> t[i] >> x[i] >> y[i];
    if (t[i] - t[i - 1] < x[i] - x[i - 1] + y[i] - y[i - 1] ||
        x[i] == x[i - 1] && y[i] == y[i - 1]) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
