#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, x, y, t, ans;
  cin >> n;
  while (n--) {
    cin >> t >> x >> y;
    ans = x + y;
    if (t % ans != 0) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
