import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			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) {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} boolean canArrive = true; canArrive true try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		} {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int t1 = 0 t1 0 t2; t2 int x1 = 0 x1 0 x2; x2 int y1 = 0 y1 0 y2; y2 for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			} {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			} t2 = scanner.nextInt() t2 scanner.nextInt() scanner.nextInt scanner x2 = scanner.nextInt() x2 scanner.nextInt() scanner.nextInt scanner y2 = scanner.nextInt() y2 scanner.nextInt() scanner.nextInt scanner int time = t2 - t1; time t2 - t1 t2 t1 int distance = Math.abs(x2 - x1 + y2  - y1); distance Math.abs(x2 - x1 + y2  - y1) Math.abs Math x2 - x1 + y2  - y1 x2 - x1 + y2 x2 - x1 x2 x1 y2 y1 if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				} distance > time || (distance ^ time & 1) == 1 distance > time distance time (distance ^ time & 1) == 1 (distance ^ time & 1) distance time & 1 time 1 1 {
					canArrive = false;
					break;
				} canArrive = false canArrive false break; t1 = t2 t1 t2 x1 = x2 x1 x2 y1 = y2 y1 y2 if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} canArrive {
			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) {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		boolean canArrive = true;
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			int t1 = 0, t2;
			int x1 = 0, x2;
			int y1 = 0, y2;

			for (int i = 0; i < n; i++) {
				t2 = scanner.nextInt();
				x2 = scanner.nextInt();
				y2 = scanner.nextInt();

				int time = t2 - t1;
				int distance = Math.abs(x2 - x1 + y2  - y1);
				if (distance > time || (distance ^ time & 1) == 1) {
					canArrive = false;
					break;
				}

				t1 = t2;
				x1 = x2;
				y1 = y2;
			}
		}

		if (canArrive) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}