import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan 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 for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		} int t_i = 0; int t_i = 0; t_i 0 t_i < n t_i n t_i++ t_i++ t_i {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		} {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		} t[t_i + 1] = scan.nextInt() t[t_i + 1] t t_i + 1 t_i 1 scan.nextInt() scan.nextInt scan x[t_i + 1] = scan.nextInt() x[t_i + 1] x t_i + 1 t_i 1 scan.nextInt() scan.nextInt scan y[t_i + 1] = scan.nextInt() y[t_i + 1] y t_i + 1 t_i 1 scan.nextInt() scan.nextInt scan int dt = t[t_i+1] - t[t_i]; dt t[t_i+1] - t[t_i] t[t_i+1] t t_i+1 t_i 1 t[t_i] t t_i int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]); dist Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]) Math.abs(x[t_i+1] - x[t_i]) Math.abs Math x[t_i+1] - x[t_i] x[t_i+1] x t_i+1 t_i 1 x[t_i] x t_i Math.abs(y[t_i+1] - y[t_i]) Math.abs Math y[t_i+1] - y[t_i] y[t_i+1] y t_i+1 t_i 1 y[t_i] y t_i if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			} (dist>dt) || ((dt % 2) != (dist % 2)) (dist>dt) dist dt ((dt % 2) != (dist % 2)) (dt % 2) dt 2 (dist % 2) dist 2 {
					System.out.println("No");
					return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.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;

		for(int t_i = 0; t_i < n; t_i++) {
			t[t_i + 1] = scan.nextInt();
			x[t_i + 1] = scan.nextInt();
			y[t_i + 1] = scan.nextInt();

			int dt = t[t_i+1] - t[t_i];
			int dist = Math.abs(x[t_i+1] - x[t_i]) + Math.abs(y[t_i+1] - y[t_i]);

			if ((dist>dt) || ((dt % 2) != (dist % 2))) {
					System.out.println("No");
					return;
			}
		}
		System.out.println("Yes");
	}

}
