using System;
public class Program{
    public static void Main(){
        
        int N=int.Parse(Console.ReadLine())+1;
        int[] t=new int[N];
        int[] x=new int[N];
        int[] y=new int[N];
        for(int i=1;i<N;i++) {
            int[] input2=Array.ConvertAll(Console.ReadLine().Split(' '),int.Parse);
            t[i]=input2[0];
            x[i]=input2[1];
            y[i]=input2[2];
        }
        t[0]=x[0]=y[0]=0;
        
        
        if(AbsCheck(N,t,x,y)=="Yes" && ParityCheck(N,t,x,y)=="Yes") {
            Console.WriteLine("Yes");
        } else {
            Console.WriteLine("No");
        }
    }
    
    
    public static string AbsCheck(int N, int[] t, int[] x, int[] y) {    
        string flag="No";
        for(int i=1;i<N;i++) {
            int dt=t[i]-t[i-1];
            int dist=Math.Abs(x[i]-x[i-1])+Math.Abs(y[i]-y[i-1]);
            if(dt>=dist) {
                flag="Yes";
            }
        }
        return flag;
    }
    
    public static string ParityCheck(int N, int[] t, int[] x, int[] y) {
        string flag="No";
        for(int i=1;i<N;i++) {
            int dt=t[i]-t[i-1];
            int dist=Math.Abs(x[i]-x[i-1])+Math.Abs(y[i]-y[i-1]);
            if(dt%2==dist%2) {
                flag="Yes";
            }
        }
        return flag;
    }
}
