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


void solve() {
    int n;
    cin >> n;
    long long a = 0, b = 0;
    for (int i = 1; i <= n; i++) {
        long long t, x, y;
        cin >> t >> x >> y;
        t -= abs(x - a);
        t -= abs(y - b);
        a = x, b = y;
        if(t < 0 || t%2) {
            cout << "No";
            return;
        }
    }
    cout << "Yes";
}


int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    solve();
    return 0;
}
