import java.util.Scanner;

public class Main {


	public static boolean hantei(int N, int t, int T, int x, int X, int y, int Y) {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	}


	public static void main(String[] args) {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {


	public static boolean hantei(int N, int t, int T, int x, int X, int y, int Y) {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	}


	public static void main(String[] args) {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	}
} Main public static boolean hantei(int N, int t, int T, int x, int X, int y, int Y) {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	} hantei {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	} boolean plan = false; plan false int rt = t - T; rt t - T t T int dist = x + y - X - Y; dist x + y - X - Y x + y - X - Y x + y x y X Y if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		} rt >= dist && ((rt-dist)%2 == 0) rt >= dist rt dist ((rt-dist)%2 == 0) (rt-dist)%2 (rt-dist) rt dist 2 0 {
			plan = true;
		} plan = true plan true return plan; plan int N N int t t int T T int x x int X X int y y int Y Y public static void main(String[] args) {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	} main {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	} int N N t t x x y; y int T = 0; T 0 int X = 0; X 0 int Y = 0; Y 0 boolean plan; plan Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		} {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		} t = sc.nextInt() t sc.nextInt() sc.nextInt sc x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc plan = hantei(N, t, T, x, X, y, Y) plan hantei(N, t, T, x, X, y, Y) hantei N t T x X y Y if(!plan){
				System.out.println("No");
				System.exit(0);
			} !plan plan {
				System.out.println("No");
				System.exit(0);
			} System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 T = t T t X = x X x Y = y Y y System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc String[] args args public class Main {


	public static boolean hantei(int N, int t, int T, int x, int X, int y, int Y) {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	}


	public static void main(String[] args) {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	}
} public class Main {


	public static boolean hantei(int N, int t, int T, int x, int X, int y, int Y) {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	}


	public static void main(String[] args) {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {


	public static boolean hantei(int N, int t, int T, int x, int X, int y, int Y) {
		boolean plan = false;
		int rt = t - T;
		int dist = x + y - X - Y;
		if(rt >= dist && ((rt-dist)%2 == 0)) {
			plan = true;
		}
		return plan;
	}


	public static void main(String[] args) {
		int N,t,x,y;
		int T = 0;
		int X = 0;
		int Y = 0;
		boolean plan;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();

		for(int i = 0; i < N; i++) {
			t = sc.nextInt();
			x = sc.nextInt();
			y = sc.nextInt();
			plan = hantei(N, t, T, x, X, y, Y);
			if(!plan){
				System.out.println("No");
				System.exit(0);
			}
			T = t;
			X = x;
			Y = y;
		}
		System.out.println("Yes");
		sc.close();
	}
}
