#include<cstdio>
#include<algorithm>
using namespace std;
int t[100005],x[100005],y[100005];
int main() {
	int n;
	scanf("%d",&n);
	for (int i=1; i<=n; i++) {
		scanf("%d%d%d",&t[i],&x[i],&y[i]);
	}
	for(int i=1; i<=n; i++) {
		if (abs(x[i]-x[i-1])+abs(y[i]-y[i-1])<=t[i]) {
			if ((abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))%2!=t[i]%2) {
				printf("No\n");
				return 0;
			}
		}
		else
        {
			printf("No\n");
			return 0;
		}
		printf("Yes\n");
		return 0;
	}
}