import java.util.Scanner;


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

		int N = sc.nextInt();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		System.out.println(result ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		System.out.println(result ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		System.out.println(result ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		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 boolean result = true; result true int ti = 0; ti 0 int xi = 0; xi 0 int yi = 0; yi 0 for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = 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 ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		} {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = 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 ta = Math.abs(t - ti); ta Math.abs(t - ti) Math.abs Math t - ti t ti int xa = Math.abs(x - xi); xa Math.abs(x - xi) Math.abs Math x - xi x xi int ya = Math.abs(y - yi); ya Math.abs(y - yi) Math.abs Math y - yi y yi if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			} ta < xa + ya
				|| ta % 2 != (xa + ya) % 2 ta < xa + ya ta xa + ya xa ya ta % 2 != (xa + ya) % 2 ta % 2 ta 2 (xa + ya) % 2 (xa + ya) xa ya 2 {
				result = false;
				break;
			} result = false result false break; ti = t ti t xi = x xi x yi = y yi y 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();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		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();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		System.out.println(result ? "Yes" : "No");
	}
} Main
import java.util.Scanner;


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

		int N = sc.nextInt();
		boolean result = true;

		int ti = 0;
		int xi = 0;
		int yi = 0;

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int ta = Math.abs(t - ti);
			int xa = Math.abs(x - xi);
			int ya = Math.abs(y - yi);

			if (ta < xa + ya
				|| ta % 2 != (xa + ya) % 2) {
				result = false;
				break;
			}

			ti = t;
			xi = x;
			yi = y;
		}

		System.out.println(result ? "Yes" : "No");
	}
}