import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = Integer.parseInt(sc.nextLine()); count Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int t = 0; t 0 int x = 0; x 0 int y = 0; y 0 boolean result = true; result true for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		} int n = 0 ; int n = 0 ; n 0 n < count n count n++ n++ n {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		} {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		} int ti = sc.nextInt(); ti sc.nextInt() sc.nextInt sc int xi = sc.nextInt(); xi sc.nextInt() sc.nextInt sc int yi = sc.nextInt(); yi sc.nextInt() sc.nextInt sc int absX = Math.abs(xi -x); absX Math.abs(xi -x) Math.abs Math xi -x xi x int absY = Math.abs(yi -y); absY Math.abs(yi -y) Math.abs Math yi -y yi y int rest = (ti - t) - absX - absY; rest (ti - t) - absX - absY (ti - t) - absX - absY (ti - t) ti t absX absY if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			} rest < 0 || rest%2 != 0 rest < 0 rest 0 rest%2 != 0 rest%2 rest 2 0 {
				result = false;
				break;
			} result = false result false break; {
				t = ti;
				x = xi;
				y = yi;
			} t = ti t ti x = xi x xi y = yi y yi if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} result {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}