import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N =in.nextInt();
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		for(int i=1;i<=N;i++) {
			t[i]=in.nextInt();
			x[i]=in.nextInt();
			y[i]=in.nextInt();
		}
		Boolean flag = true;
		for(int i=0;i<N;i++) {
			int dif = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
			int diftime=t[i+1]-t[i];
			if((dif%2)==(diftime%2)&&diftime>=dif) {
				flag = true;
			}else {
				flag =false;
			}
		}
		if(flag) {
			System.out.println("Yes");
		}else {
			System.out.println("No");		
		}
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N =in.nextInt();
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		for(int i=1;i<=N;i++) {
			t[i]=in.nextInt();
			x[i]=in.nextInt();
			y[i]=in.nextInt();
		}
		Boolean flag = true;
		for(int i=0;i<N;i++) {
			int dif = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
			int diftime=t[i+1]-t[i];
			if((dif%2)==(diftime%2)&&diftime>=dif) {
				flag = true;
			}else {
				flag =false;
			}
		}
		if(flag) {
			System.out.println("Yes");
		}else {
			System.out.println("No");		
		}
		
	}

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N =in.nextInt();
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		for(int i=1;i<=N;i++) {
			t[i]=in.nextInt();
			x[i]=in.nextInt();
			y[i]=in.nextInt();
		}
		Boolean flag = true;
		for(int i=0;i<N;i++) {
			int dif = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
			int diftime=t[i+1]-t[i];
			if((dif%2)==(diftime%2)&&diftime>=dif) {
				flag = true;
			}else {
				flag =false;
			}
		}
		if(flag) {
			System.out.println("Yes");
		}else {
			System.out.println("No");		
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N =in.nextInt();
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		for(int i=1;i<=N;i++) {
			t[i]=in.nextInt();
			x[i]=in.nextInt();
			y[i]=in.nextInt();
		}
		Boolean flag = true;
		for(int i=0;i<N;i++) {
			int dif = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
			int diftime=t[i+1]-t[i];
			if((dif%2)==(diftime%2)&&diftime>=dif) {
				flag = true;
			}else {
				flag =false;
			}
		}
		if(flag) {
			System.out.println("Yes");
		}else {
			System.out.println("No");		
		}
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N =in.nextInt();
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		for(int i=1;i<=N;i++) {
			t[i]=in.nextInt();
			x[i]=in.nextInt();
			y[i]=in.nextInt();
		}
		Boolean flag = true;
		for(int i=0;i<N;i++) {
			int dif = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
			int diftime=t[i+1]-t[i];
			if((dif%2)==(diftime%2)&&diftime>=dif) {
				flag = true;
			}else {
				flag =false;
			}
		}
		if(flag) {
			System.out.println("Yes");
		}else {
			System.out.println("No");		
		}
		
	}

}
