import java.util.Scanner;

public class Main {
	static public void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static public void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	}
} Main static public void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	} main {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] tArray = new int[n]; tArray new int[n] n int[] xArray = new int[n]; xArray new int[n] n int[] yArray = new int[n]; yArray new int[n] n for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		} {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		} tArray[i] = scan.nextInt() tArray[i] tArray i scan.nextInt() scan.nextInt scan xArray[i] = scan.nextInt() xArray[i] xArray i scan.nextInt() scan.nextInt scan yArray[i] = scan.nextInt() yArray[i] yArray i scan.nextInt() scan.nextInt scan scan.close() scan.close scan int currentT = 0; currentT 0 int currentY = 0; currentY 0 int currentX = 0; currentX 0 for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		} {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		} int nextT = tArray[i]; nextT tArray[i] tArray i int nextX = xArray[i]; nextX xArray[i] xArray i int nextY = yArray[i]; nextY yArray[i] yArray i int diffT = nextT - currentT; diffT nextT - currentT nextT currentT int diffX = nextX - currentX; diffX nextX - currentX nextX currentX int diffY = nextY - currentY; diffY nextY - currentY nextY currentY int remainT = diffT - diffX - diffY; remainT diffT - diffX - diffY diffT - diffX - diffY diffT diffX diffY if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			} remainT < 0 || (remainT) % 2 == 1 remainT < 0 remainT 0 (remainT) % 2 == 1 (remainT) % 2 (remainT) 2 1 {
				System.out.println("No");
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; currentT = nextT currentT nextT currentX = nextX currentX nextX currentY = nextY currentY nextY System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	static public void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	}
} public class Main {
	static public void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	}
} Main
import java.util.Scanner;

public class Main {
	static public void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] tArray = new int[n];
		int[] xArray = new int[n];
		int[] yArray = new int[n];
		for (int i = 0; i < n; i++) {
			tArray[i] = scan.nextInt();
			xArray[i] = scan.nextInt();
			yArray[i] = scan.nextInt();
		}
		scan.close();

		int currentT = 0;
		int currentY = 0;
		int currentX = 0;
		for (int i = 0; i < n; i++) {
			int nextT = tArray[i];
			int nextX = xArray[i];
			int nextY = yArray[i];
			int diffT = nextT - currentT;
			int diffX = nextX - currentX;
			int diffY = nextY - currentY;
			int remainT = diffT - diffX - diffY;
			if (remainT < 0 || (remainT) % 2 == 1) {
				System.out.println("No");
				return;
			}
			currentT = nextT;
			currentX = nextX;
			currentY = nextY;
		}
		System.out.println("Yes");
	}
}
