import java.util.Scanner;

public class Main {

	public static void main(String[] args){

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

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

	public static void main(String[] args){

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

		System.out.println(res);
	}
} Main public static void main(String[] args){

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

		System.out.println(res);
	} main {

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

		System.out.println(res);
	} final String YES	= "Yes"; YES "Yes" final String NO		= "No"; NO "No" String res = YES; res YES Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int tNow = 0; tNow 0 int xNow = 0; xNow 0 int yNow = 0; yNow 0 int tNext = 0; tNext 0 int xNext = 0; xNext 0 int yNext = 0; yNext 0 int xDist = 0; xDist 0 int yDist = 0; yDist 0 for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		} {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		} tNext = sc.nextInt() tNext sc.nextInt() sc.nextInt sc xNext = sc.nextInt() xNext sc.nextInt() sc.nextInt sc yNext = sc.nextInt() yNext sc.nextInt() sc.nextInt sc if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			} tNext%2 != (xNext+yNext)%2 tNext%2 tNext 2 (xNext+yNext)%2 (xNext+yNext) xNext yNext 2 {
				res = NO;
				break;
			} res = NO res NO break; xDist = Math.abs(xNext - xNow) xDist Math.abs(xNext - xNow) Math.abs Math xNext - xNow xNext xNow yDist = Math.abs(yNext - yNow) yDist Math.abs(yNext - yNow) Math.abs Math yNext - yNow yNext yNow if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			} tNext - tNow < xDist + yDist tNext - tNow tNext tNow xDist + yDist xDist yDist {
				res = NO;
				break;
			} res = NO res NO break; {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			} tNow = tNext tNow tNext xNow = xNext xNow xNext yNow = yNext yNow yNext sc.close() sc.close sc System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

	public static void main(String[] args){

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

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

	public static void main(String[] args){

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

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

public class Main {

	public static void main(String[] args){

		final String YES	= "Yes";
		final String NO		= "No";

		String res = YES;

		// TODO ABC_086_C
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();

		int tNow = 0;
		int xNow = 0;
		int yNow = 0;
		int tNext = 0;
		int xNext = 0;
		int yNext = 0;

		int xDist = 0;
		int yDist = 0;

		for(int i=0; i<N; i++) {

			tNext = sc.nextInt();
			xNext = sc.nextInt();
			yNext = sc.nextInt();

			if(tNext%2 != (xNext+yNext)%2) {
				res = NO;
				break;
			}

			xDist = Math.abs(xNext - xNow);
			yDist = Math.abs(yNext - yNow);

			if(tNext - tNow < xDist + yDist) {
				res = NO;
				break;
			} else {
				tNow = tNext;
				xNow = xNext;
				yNow = yNext;
			}
		}

		// Scannerクラスのインスタンスをクローズ
		sc.close();

		System.out.println(res);
	}
}
