import java.util.*;

public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			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 t0 = 0; t0 0 int x0 = 0; x0 0 int y0 = 0; y0 0 boolean flag = true; flag true for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		} {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		} int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int d = Math.abs(x - x0) + Math.abs(y - y0); d Math.abs(x - x0) + Math.abs(y - y0) Math.abs(x - x0) Math.abs Math x - x0 x x0 Math.abs(y - y0) Math.abs Math y - y0 y y0 int dt = t - t0; dt t - t0 t t0 if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			} d > dt || (dt - d) % 2 != 0 d > dt d dt (dt - d) % 2 != 0 (dt - d) % 2 (dt - d) dt d 2 0 {
				flag = false;
				break;
			} flag = false flag false break; t0 = t t0 t x0 = x x0 x y0 = y y0 y 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 sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t0 = 0;
		int x0 = 0;
		int y0 = 0;
		boolean flag = true;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int d = Math.abs(x - x0) + Math.abs(y - y0);
			int dt = t - t0;
			if (d > dt || (dt - d) % 2 != 0) {
				flag = false;
				break;
			}
			t0 = t;
			x0 = x;
			y0 = y;
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
