import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		System.out.println("Yes");
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		System.out.println("Yes");
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		System.out.println("Yes");
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		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 t1 = 0 t1 0 x1 = 0 x1 0 y1 = 0; y1 0 int t2 t2 x2 x2 y2 y2 t t c; c for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		} {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		} t2 = scan.nextInt() t2 scan.nextInt() scan.nextInt scan x2 = scan.nextInt() x2 scan.nextInt() scan.nextInt scan y2 = scan.nextInt() y2 scan.nextInt() scan.nextInt scan t = t2 -t1 t t2 -t1 t2 t1 c = Math.abs((x2+y2)-(x1+y1)) c Math.abs((x2+y2)-(x1+y1)) Math.abs Math (x2+y2)-(x1+y1) (x2+y2) x2 y2 (x1+y1) x1 y1 if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			} t >= c t c {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				} t%2 != c%2 t%2 t 2 c%2 c 2 {
					System.out.println("No");
					scan.close();
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" scan.close() scan.close scan return; {
				System.out.println("No");
				scan.close();
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" scan.close() scan.close scan return; t1 = t2 t1 t2 x1 = x2 x1 x2 y1 = y2 y1 y2 scan.close() scan.close scan 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 scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		System.out.println("Yes");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		System.out.println("Yes");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int t1 = 0, x1 = 0, y1 = 0;
		int t2, x2, y2, t, c;
		
		for(int i=0; i<n; i++) {
			t2 = scan.nextInt();
			x2 = scan.nextInt();
			y2 = scan.nextInt();
			t = t2 -t1;
			c = Math.abs((x2+y2)-(x1+y1));
			if(t >= c) {
				if(t%2 != c%2) {
					System.out.println("No");
					scan.close();
					return;
				}
			} else {
				System.out.println("No");
				scan.close();
				return;
			}
			t1 = t2;
			x1 = x2;
			y1 = y2;
		}
		scan.close();
		System.out.println("Yes");
	}

}