#include<stdio.h>

int main(void){
	int x, t1, x1, x2, ans = 1;
	scanf("%d", &x);
	while(x--){
		scanf("%d%d%d", &t1, &x1, &x2);
		if(t1 < (x1 + x2))ans = 0;
		int mod_t1 = t1 % 2;
		int mod_x = (x1 + x2) % 2;
		if(mod_t1 != mod_x)ans = 0; 
	}
	if(ans)puts("Yes");
	else puts("No");
}