#include<bits/stdc++.h>
using namespace std;

int t[10005],x[10005],y[10005],n,i;

int main()
{
	cin >> n;
	for(i=1;i<=n;i++)
	{
		cin >> t[i] >> x[i] >> y[i];
		if(x[i]==x[i-1]&&y[i]==y[i-1]||t[i]-t[i-1]<x[i]-x[i-1]+y[i]-y[i-1])
		{
			cout << "No";
			return 0;
		}
	}
	cout << "Yes";
	return 0;
}
