import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} 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[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] t = new int[n]; t new int[n] n int[] x = new int[n]; x new int[n] n int[] y = new int[n]; y new int[n] n for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		} t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc int nowT = 0; nowT 0 int X = 0; X 0 int Y = 0; Y 0 for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		} {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		} if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			} t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y) t[i] - nowT t[i] t i nowT Math.abs(x[i] - X) + Math.abs(y[i] - Y) Math.abs(x[i] - X) Math.abs Math x[i] - X x[i] x i X Math.abs(y[i] - Y) Math.abs Math y[i] - Y y[i] y i Y {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} nowT = t[i] nowT t[i] t i X = x[i] X x[i] x i Y = y[i] Y y[i] y i if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			} t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2 t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) t[i] - nowT t[i] t i nowT Math.abs(x[i] - X) + Math.abs(y[i] - Y) Math.abs(x[i] - X) Math.abs Math x[i] - X x[i] x i X Math.abs(y[i] - Y) Math.abs Math y[i] - Y y[i] y i Y nowT % 2 == (t[i] - nowT) % 2 nowT % 2 nowT 2 (t[i] - nowT) % 2 (t[i] - nowT) t[i] t i nowT 2 {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} nowT = t[i] nowT t[i] t i X = x[i] X x[i] x i Y = y[i] Y y[i] y i {
				System.out.println("No");
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; 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) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} 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[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0 ; i < n ; i++) {
			t[i] = sc.nextInt();
			x[i] = sc.nextInt();
			y[i] = sc.nextInt();
		}
		int nowT = 0;
		int X = 0;
		int Y = 0;
		for(int i = 0 ; i < n ; i++) {
			if(t[i] - nowT == Math.abs(x[i] - X) + Math.abs(y[i] - Y)) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else if(t[i] - nowT > Math.abs(x[i] - X) + Math.abs(y[i] - Y) && nowT % 2 == (t[i] - nowT) % 2) {
				nowT = t[i];
				X = x[i];
				Y = y[i];
			} else {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}
