import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} int[] point = { 0, 0 }; point { 0, 0 } 0 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc boolean isSuccess = true; isSuccess true int currentTime = 0; currentTime 0 for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		} {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		} int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x = Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int y = Integer.parseInt(sc.next()); y Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int move = Math.abs(x - point[0]) + Math.abs(y - point[1]); move Math.abs(x - point[0]) + Math.abs(y - point[1]) Math.abs(x - point[0]) Math.abs Math x - point[0] x point[0] point 0 Math.abs(y - point[1]) Math.abs Math y - point[1] y point[1] point 1 int diftime = t - currentTime; diftime t - currentTime t currentTime if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			} move > diftime || move % 2 != diftime % 2 move > diftime move diftime move % 2 != diftime % 2 move % 2 move 2 diftime % 2 diftime 2 {
				isSuccess = false;
				break;
			} isSuccess = false isSuccess false break; currentTime = t currentTime t point[0] = x point[0] point 0 x point[1] = y point[1] point 1 y if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} isSuccess {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} public class Main {
	public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

}
