import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] t= new int[N+10];
		int[] x= new int[N+10];
		int[] y= new int[N+10];
		for (int i=0;i<N;i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}

		int X=0;
		int Y=0;
		int T=0;
		int flag=0;

		for (int i=0;i<N;i++) {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		}

		if (flag==0) {
			System.out.println("Yes");
		}else if (flag==1) {
			System.out.println("No");
		}
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] t= new int[N+10];
		int[] x= new int[N+10];
		int[] y= new int[N+10];
		for (int i=0;i<N;i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}

		int X=0;
		int Y=0;
		int T=0;
		int flag=0;

		for (int i=0;i<N;i++) {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		}

		if (flag==0) {
			System.out.println("Yes");
		}else if (flag==1) {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] t= new int[N+10];
		int[] x= new int[N+10];
		int[] y= new int[N+10];
		for (int i=0;i<N;i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}

		int X=0;
		int Y=0;
		int T=0;
		int flag=0;

		for (int i=0;i<N;i++) {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		}

		if (flag==0) {
			System.out.println("Yes");
		}else if (flag==1) {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] t= new int[N+10];
		int[] x= new int[N+10];
		int[] y= new int[N+10];
		for (int i=0;i<N;i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}

		int X=0;
		int Y=0;
		int T=0;
		int flag=0;

		for (int i=0;i<N;i++) {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		}

		if (flag==0) {
			System.out.println("Yes");
		}else if (flag==1) {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] t= new int[N+10]; t new int[N+10] N+10 N 10 int[] x= new int[N+10]; x new int[N+10] N+10 N 10 int[] y= new int[N+10]; y new int[N+10] N+10 N 10 for (int i=0;i<N;i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} 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 int X=0; X 0 int Y=0; Y 0 int T=0; T 0 int flag=0; flag 0 for (int i=0;i<N;i++) {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		} {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		} if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			} ((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0) ((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T)) (Math.abs(x[i]-X)+Math.abs(y[i]-Y)) Math.abs(x[i]-X) Math.abs Math x[i]-X x[i] x i X Math.abs(y[i]-Y) Math.abs Math y[i]-Y y[i] y i Y (t[i]-T) t[i] t i T (((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0) ((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2 ((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y))) (t[i]-T) t[i] t i T (Math.abs(x[i]-X)+Math.abs(y[i]-Y)) Math.abs(x[i]-X) Math.abs Math x[i]-X x[i] x i X Math.abs(y[i]-Y) Math.abs Math y[i]-Y y[i] y i Y 2 0 {
				X=x[i];
				Y=y[i];
				T=t[i];
			} X=x[i] X x[i] x i Y=y[i] Y y[i] y i T=t[i] T t[i] t i {
				flag=1;
				break;
			} flag=1 flag 1 break; if (flag==0) {
			System.out.println("Yes");
		}else if (flag==1) {
			System.out.println("No");
		} flag==0 flag 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (flag==1) {
			System.out.println("No");
		} flag==1 flag 1 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] t= new int[N+10];
		int[] x= new int[N+10];
		int[] y= new int[N+10];
		for (int i=0;i<N;i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}

		int X=0;
		int Y=0;
		int T=0;
		int flag=0;

		for (int i=0;i<N;i++) {
			if (((Math.abs(x[i]-X)+Math.abs(y[i]-Y))<=(t[i]-T))&&(((t[i]-T)-(Math.abs(x[i]-X)+Math.abs(y[i]-Y)))%2==0)) {
				X=x[i];
				Y=y[i];
				T=t[i];
			}else {
				flag=1;
				break;
			}
		}

		if (flag==0) {
			System.out.println("Yes");
		}else if (flag==1) {
			System.out.println("No");
		}
	}
}