import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	}
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	} main {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) Integer N=sc.nextInt(); N sc.nextInt() sc.nextInt sc Integer[] t=new Integer[N+1]; t new Integer[N+1] N+1 N 1 Integer[] x=new Integer[N+1]; x new Integer[N+1] N+1 N 1 Integer[] y=new Integer[N+1]; y new Integer[N+1] N+1 N 1 Boolean b=true; b true t[0]=x[0]=y[0]=0 t[0] t 0 x[0]=y[0]=0 x[0] x 0 y[0]=0 y[0] y 0 0 for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        } int i=1; int i=1; i 1 i<=N i N i++ i++ i {
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        } {
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        } t[i]=sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i]=sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i]=sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]); d Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]) Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]) Math.abs(t[i]-t[i-1]) Math.abs Math t[i]-t[i-1] t[i] t i t[i-1] t i-1 i 1 Math.abs(x[i]-x[i-1]) Math.abs Math x[i]-x[i-1] x[i] x i x[i-1] x i-1 i 1 Math.abs(y[i]-y[i-1]) Math.abs Math y[i]-y[i-1] y[i] y i y[i-1] y i-1 i 1 if(d<0||d%2>0){
                b=false;
            } d<0||d%2>0 d<0 d 0 d%2>0 d%2 d 2 0 {
                b=false;
            } b=false b false System.out.println(b?"Yes":"No") System.out.println System.out System System.out b?"Yes":"No" b "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	}
} public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Integer N=sc.nextInt();
        Integer[] t=new Integer[N+1];
        Integer[] x=new Integer[N+1];
        Integer[] y=new Integer[N+1];
        Boolean b=true;
        t[0]=x[0]=y[0]=0;

        for(int i=1;i<=N;i++){
            t[i]=sc.nextInt();
            x[i]=sc.nextInt();
            y[i]=sc.nextInt();
            Integer d=Math.abs(t[i]-t[i-1])-Math.abs(x[i]-x[i-1])-Math.abs(y[i]-y[i-1]);
            if(d<0||d%2>0){
                b=false;
            }
        }

        System.out.println(b?"Yes":"No");

	}
}
