import java.util.Scanner;

public class Main {

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

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	}
} Main @SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner 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 for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		} {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		} t[i] = scanner.nextInt() t[i] t i scanner.nextInt() scanner.nextInt scanner x[i] = scanner.nextInt() x[i] x i scanner.nextInt() scanner.nextInt scanner y[i] = scanner.nextInt() y[i] y i scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		} {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		} int time = t[i + 1] - t[i]; time t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]); dis Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]) Math.abs(x[i + 1] - x[i]) Math.abs Math x[i + 1] - x[i] x[i + 1] x i + 1 i 1 x[i] x i Math.abs(y[i + 1] - y[i]) Math.abs Math y[i + 1] - y[i] y[i + 1] y i + 1 i 1 y[i] y i if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			} dis <= time && dis % 2 == time % 2 dis <= time dis time dis % 2 == time % 2 dis % 2 dis 2 time % 2 time 2 continue; {
				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 {

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

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	}
} public class Main {

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

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	}
} Main
import java.util.Scanner;

public class Main {

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

		for (int i = 1; i <= n; i++) {
			t[i] = scanner.nextInt();
			x[i] = scanner.nextInt();
			y[i] = scanner.nextInt();
		}

		for (int i = 0; i < n; i++) {
			int time = t[i + 1] - t[i];
			int dis = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dis <= time && dis % 2 == time % 2)
				continue;
			else {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	}
}
