#include<iostream>
using namespace std;
int main()
{
    long t,x,y,n;
    bool flag=true;
    cin>>n;
    for(long i=1;i<=n;i++)
    {
        cin>>t>>x>>y;
        if((x+y)%2!=t%2||x+y>t) flag=false;
    }
    if(flag) cout<<"Yes"<<endl; else cout<<"No"<<endl;
    return 0;
}