import java.util.*;
public class Main {
	
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		System.out.println("Yes");
		
	}
} import java.util.*; util.* java public class Main {
	
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		System.out.println("Yes");
		
	}
} Main public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		System.out.println("Yes");
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		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 = 0; t 0 int x = 0; x 0 int y = 0; y 0 for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		} {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		} int ti = sc.nextInt(); ti sc.nextInt() sc.nextInt sc int zikan = t - ti; zikan t - ti t ti zikan = Math.abs(zikan) zikan Math.abs(zikan) Math.abs Math zikan int xi = sc.nextInt(); xi sc.nextInt() sc.nextInt sc int yi = sc.nextInt(); yi sc.nextInt() sc.nextInt sc int kyori = Math.abs(x - xi) + Math.abs(y - yi); kyori Math.abs(x - xi) + Math.abs(y - yi) Math.abs(x - xi) Math.abs Math x - xi x xi Math.abs(y - yi) Math.abs Math y - yi y yi if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			} zikan - kyori < 0 || (zikan - kyori) % 2 != 0 zikan - kyori < 0 zikan - kyori zikan kyori 0 (zikan - kyori) % 2 != 0 (zikan - kyori) % 2 (zikan - kyori) zikan kyori 2 0 {
				System.out.println("No");
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; t = ti t ti x = xi x xi y = yi y yi 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 = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		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 = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		System.out.println("Yes");
		
	}
} Main
import java.util.*;
public class Main {
	
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			int ti = sc.nextInt();
			int zikan = t - ti;
			zikan = Math.abs(zikan);
			
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int kyori = Math.abs(x - xi) + Math.abs(y - yi);
			
			if (zikan - kyori < 0 || (zikan - kyori) % 2 != 0) {
				System.out.println("No");
				return;
			}
			
			
			t = ti;
			x = xi;
			y = yi;
		}
		
		System.out.println("Yes");
		
	}
}