import java.util.*;

public class Main {

	public static void main(
			String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "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 t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
} Main public static void main(
			String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = 0; t 0 int x = 0; x 0 int y = 0; y 0 boolean result = true; result true for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		} {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		} int t2 = sc.nextInt() - t; t2 sc.nextInt() - t sc.nextInt() sc.nextInt sc t int x2 = Math.abs(x - sc.nextInt()); x2 Math.abs(x - sc.nextInt()) Math.abs Math x - sc.nextInt() x sc.nextInt() sc.nextInt sc int y2 = Math.abs(y - sc.nextInt()); y2 Math.abs(y - sc.nextInt()) Math.abs Math y - sc.nextInt() y sc.nextInt() sc.nextInt sc int diff = t2 - x2 - y2; diff t2 - x2 - y2 t2 - x2 - y2 t2 x2 y2 if (diff < 0) {
				result = false;
			} diff < 0 diff 0 {
				result = false;
			} result = false result false if (diff % 2 != 0) {
				result = false;
			} diff % 2 != 0 diff % 2 diff 2 0 {
				result = false;
			} result = false result false System.out.println(result ? "Yes" : "No") System.out.println System.out System System.out result ? "Yes" : "No" result "Yes" "No" String[] args args public class Main {

	public static void main(
			String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
} public class Main {

	public static void main(
			String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "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 t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for (int i = 0; i < n; i++) {
			int t2 = sc.nextInt() - t;
			int x2 = Math.abs(x - sc.nextInt());
			int y2 = Math.abs(y - sc.nextInt());
			int diff = t2 - x2 - y2;
			if (diff < 0) {
				result = false;
			}
			if (diff % 2 != 0) {
				result = false;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
}
