import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

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

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

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

} Main public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

		System.out.println("Yes");
	} main {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

		System.out.println("Yes");
	} @SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int num = stdin.nextInt(); num stdin.nextInt() stdin.nextInt stdin int prevT = 0; prevT 0 int prevX = 0; prevX 0 int prevY = 0; prevY 0 for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		} {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		} int t = stdin.nextInt(); t stdin.nextInt() stdin.nextInt stdin int x = stdin.nextInt(); x stdin.nextInt() stdin.nextInt stdin int y = stdin.nextInt(); y stdin.nextInt() stdin.nextInt stdin int time = t - prevT; time t - prevT t prevT int move = Math.abs(x - prevX) + Math.abs(y - prevY); move Math.abs(x - prevX) + Math.abs(y - prevY) Math.abs(x - prevX) Math.abs Math x - prevX x prevX Math.abs(y - prevY) Math.abs Math y - prevY y prevY if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			} (time < move) || ((time - move) % 2 > 0) (time < move) time move ((time - move) % 2 > 0) (time - move) % 2 (time - move) time move 2 0 {
				System.out.println("No");
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; prevT = t prevT t prevX = x prevX x prevY = y prevY y 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) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

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

} public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

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

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner stdin = new Scanner(System.in);

		int num = stdin.nextInt();
		int prevT = 0;
		int prevX = 0;
		int prevY = 0;
		for (int i = 0; i < num; i++) {
			int t = stdin.nextInt();
			int x = stdin.nextInt();
			int y = stdin.nextInt();

			int time = t - prevT;
			int move = Math.abs(x - prevX) + Math.abs(y - prevY);
			if ((time < move) || ((time - move) % 2 > 0)) {
				System.out.println("No");
				return;
			}

			prevT = t;
			prevX = x;
			prevY = y;
		}

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

}
