import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

		scanner.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

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

			int time = t2 - t1;
			int distance = Math.abs(x2 + y2 - x1 - y1);
			if (distance > time || (distance + time) % 2 == 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 {
			int t2 = scanner.nextInt();
			int x2 = scanner.nextInt();
			int y2 = scanner.nextInt();

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

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

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

			t1 = t2;
			x1 = x2;
			y1 = y2;
		} int t2 = scanner.nextInt(); t2 scanner.nextInt() scanner.nextInt scanner int x2 = scanner.nextInt(); x2 scanner.nextInt() scanner.nextInt scanner int y2 = scanner.nextInt(); y2 scanner.nextInt() scanner.nextInt scanner int time = t2 - t1; time t2 - t1 t2 t1 int distance = Math.abs(x2 + y2 - x1 - y1); distance Math.abs(x2 + y2 - x1 - y1) Math.abs Math x2 + y2 - x1 - y1 x2 + y2 - x1 - y1 x2 + y2 x2 y2 x1 y1 if (distance > time || (distance + time) % 2 == 1) {
				canArrive = false;
				break;
			} distance > time || (distance + time) % 2 == 1 distance > time distance time (distance + time) % 2 == 1 (distance + time) % 2 (distance + time) distance time 2 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" scanner.close() scanner.close scanner String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

		scanner.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

		scanner.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();

		int t1 = 0;
		int x1 = 0;
		int y1 = 0;

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

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

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

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

		scanner.close();
	}
}