#include<bits/stdc++.h>
using namespace std;
int a,b,x,y;
int main(){
    cin>>a;
    for(int i=0;i<a;i++){
        cin>>b>>x>>y;
        if(!(x+y<=b&&(b-x-y)%2==0)){
            cout<<"No"<<endl;
            return 0;
        }
    }
    cout<<"Yes"<<endl;
    return 0;
}