#include<bits/stdc++.h>
using namespace std;
int main(){cin.tie(0);ios::sync_with_stdio(false);int n;cin>>n;int t=0,x=0,y=0;bool flag=true;for(int i=0;i<n;i++){int a,b,c;cin>>a>>b>>c;int dl=abs(x-b)+abs(y-c),dt=a-t;if((dl-dt)>0 || (dl-dt)%2){flag=false;}t=a,x=b,y=c;}if(flag)cout<<"Yes"<<endl;else cout<<"No"<<endl;}