import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	}

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

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] ti = new int[N+1]; ti new int[N+1] N+1 N 1 int[] xi = new int[N+1]; xi new int[N+1] N+1 N 1 int[] yi = new int[N+1]; yi new int[N+1] N+1 N 1 ti[0] = xi[0] = yi[0] = 0 ti[0] ti 0 xi[0] = yi[0] = 0 xi[0] xi 0 yi[0] = 0 yi[0] yi 0 0 for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		} int i=1; int i=1; i 1 i<N+1 i N+1 N 1 i++ i++ i {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		} {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		} ti[i] = sc.nextInt() ti[i] ti i sc.nextInt() sc.nextInt sc xi[i] = sc.nextInt() xi[i] xi i sc.nextInt() sc.nextInt sc yi[i] = sc.nextInt() yi[i] yi i sc.nextInt() sc.nextInt sc String can = "Yes"; can "Yes" for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		} {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		} int dt = ti[i+1] - ti[i]; dt ti[i+1] - ti[i] ti[i+1] ti i+1 i 1 ti[i] ti i int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]); dist Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]) Math.abs(xi[i+1] - xi[i]) Math.abs Math xi[i+1] - xi[i] xi[i+1] xi i+1 i 1 xi[i] xi i Math.abs(yi[i+1] - yi[i]) Math.abs Math yi[i+1] - yi[i] yi[i+1] yi i+1 i 1 yi[i] yi i if (dt < dist) {
				can = "No";
				break;
			} dt < dist dt dist {
				can = "No";
				break;
			} can = "No" can "No" break; if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			} (dt % 2) != (dist % 2) (dt % 2) dt 2 (dist % 2) dist 2 {
				can = "No";
				break;
			} can = "No" can "No" break; System.out.println(can) System.out.println System.out System System.out can String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] ti = new int[N+1];
		int[] xi = new int[N+1];
		int[] yi = new int[N+1];
		ti[0] = xi[0] = yi[0] = 0;
		for (int i=1; i<N+1; i++) {
			ti[i] = sc.nextInt();
			xi[i] = sc.nextInt();
			yi[i] = sc.nextInt();
		}

		String can = "Yes";
		for (int i=0; i<N; i++) {
			int dt = ti[i+1] - ti[i];
			int dist = Math.abs(xi[i+1] - xi[i]) + Math.abs(yi[i+1] - yi[i]);
			//System.out.println("debug dt=" + dt + ", dist=" + dist);
			if (dt < dist) {
				can = "No";
				break;
			}
			if ((dt % 2) != (dist % 2)) {
				can = "No";
				break;
			}
		}
		System.out.println(can);

	}

}
