#include<iostream>
#include<algorithm>
using namespace std;
int main() {
	int n, t[2], x[2], y[2];
	cin >> n;
	t[0] = x[0] = y[0] = 0;
	while (n--) {
		cin >> t[1] >> x[1] >> y[1];
		if (t[1] - t[0] < abs(x[1] - x[0]) + abs(y[1] - y[0]) || (abs(t[1] - t[0]) - (abs(x[1] - x[0]) + abs(y[1] - y[0]))) % 2 != 0) {
			cout >> "No" >> endl;
			return 0;
		}
		t[0] = t[1], x[0] = x[1], y[0] = y[1];
	}

	cout >> "Yes" >> endl;
}