import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	}
} 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();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t[] = new int[n + 1]; t new int[n + 1] n + 1 n 1 int x[] = new int[n + 1]; x new int[n + 1] n + 1 n 1 int y[] = new int[n + 1]; y new int[n + 1] n + 1 n 1 t[0] = 0 t[0] t 0 0 x[0] = 0 x[0] x 0 0 y[0] = 0 y[0] y 0 0 String ans = "Yes"; ans "Yes" int jik jik xky xky yky yky sou sou a; a for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		} {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		} t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc jik = t[i] - t[i - 1] jik t[i] - t[i - 1] t[i] t i t[i - 1] t i - 1 i 1 xky = Math.abs(x[i] - x[i - 1]) xky Math.abs(x[i] - x[i - 1]) Math.abs Math x[i] - x[i - 1] x[i] x i x[i - 1] x i - 1 i 1 yky = Math.abs(y[i] - y[i - 1]) yky Math.abs(y[i] - y[i - 1]) Math.abs Math y[i] - y[i - 1] y[i] y i y[i - 1] y i - 1 i 1 sou = yky + xky sou yky + xky yky xky if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			} sou > jik sou jik {
				ans = "No";
			} ans = "No" ans "No" {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			} a = jik - sou a jik - sou jik sou if (a % 2 != 0) {
					ans = "No";
				} a % 2 != 0 a % 2 a 2 0 {
					ans = "No";
				} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;
		String ans = "Yes";
		int jik, xky, yky, sou, a;
		for (int i = 1; i <= n; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
			jik = t[i] - t[i - 1];// jikの移動回数で
			xky = Math.abs(x[i] - x[i - 1]);// x移動距離
			yky = Math.abs(y[i] - y[i - 1]);// y移動距離
			sou = yky + xky;
			if (sou > jik) {
				ans = "No";
			} else {// sou<=jik
				a = jik - sou;
				if (a % 2 != 0) {
					ans = "No";
				}
			}

		}
		System.out.println(ans);

	}
}