import java.util.Scanner;

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

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				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 sc = new Scanner(System.in);

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		}

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

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		}

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

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		}

		System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int idoukaisuu = sc.nextInt(); idoukaisuu sc.nextInt() sc.nextInt sc int preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		} int i = 0; int i = 0; i 0 i < idoukaisuu i idoukaisuu i++ i++ i {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		} {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		} int postT = sc.nextInt(); postT sc.nextInt() sc.nextInt sc int postX = sc.nextInt(); postX sc.nextInt() sc.nextInt sc int postY = sc.nextInt(); postY sc.nextInt() sc.nextInt sc int dt = postT - preT; dt postT - preT postT preT int dist = Math.abs(postX - preX) + Math.abs(postY - preY); dist Math.abs(postX - preX) + Math.abs(postY - preY) Math.abs(postX - preX) Math.abs Math postX - preX postX preX Math.abs(postY - preY) Math.abs Math postY - preY postY preY if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			} dt < dist || (dist - dt) % 2 != 0 dt < dist dt dist (dist - dt) % 2 != 0 (dist - dt) % 2 (dist - dt) dist dt 2 0 {
				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 sc = new Scanner(System.in);

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		}

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

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		}

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

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

		int idoukaisuu = sc.nextInt();

		int preT = 0;
		int preX = 0;
		int preY = 0;

		for (int i = 0; i < idoukaisuu; i++) {
			int postT = sc.nextInt();
			int postX = sc.nextInt();
			int postY = sc.nextInt();

			int dt = postT - preT;
			int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
			if (dt < dist || (dist - dt) % 2 != 0) {
				System.out.println("No");
				return;
			}
		}

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