import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean canTravel = true;
		int T = 0, X = 0, Y = 0;
		for(int i = 0; i < N; i++) {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		}
		System.out.println(canTravel ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean canTravel = true;
		int T = 0, X = 0, Y = 0;
		for(int i = 0; i < N; i++) {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		}
		System.out.println(canTravel ? "Yes" : "No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean canTravel = true;
		int T = 0, X = 0, Y = 0;
		for(int i = 0; i < N; i++) {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		}
		System.out.println(canTravel ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean canTravel = true;
		int T = 0, X = 0, Y = 0;
		for(int i = 0; i < N; i++) {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		}
		System.out.println(canTravel ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean canTravel = true; canTravel true int T = 0 T 0 X = 0 X 0 Y = 0; Y 0 for(int i = 0; i < N; i++) {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		} {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		} int 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 int diff = t - T - Math.abs(x - X) - Math.abs(y - Y); diff t - T - Math.abs(x - X) - Math.abs(y - Y) Math.abs(x - X) t - T - Math.abs(x - X) - Math.abs(y - Y) t T Math.abs(x - X) Math.abs Math x - X x X Math.abs(y - Y) Math.abs Math y - Y y Y canTravel = (diff % 2 == 0 && diff >= 0) canTravel (diff % 2 == 0 && diff >= 0) diff % 2 == 0 diff % 2 diff 2 0 diff >= 0 diff 0 T = t T t X = x X x Y = y Y y System.out.println(canTravel ? "Yes" : "No") System.out.println System.out System System.out canTravel ? "Yes" : "No" canTravel "Yes" "No" String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean canTravel = true;
		int T = 0, X = 0, Y = 0;
		for(int i = 0; i < N; i++) {
			int t = sc.nextInt(), x = sc.nextInt(), y = sc.nextInt();
			int diff = t - T - Math.abs(x - X) - Math.abs(y - Y);
			canTravel = (diff % 2 == 0 && diff >= 0);
			T = t; X = x; Y = y;
		}
		System.out.println(canTravel ? "Yes" : "No");
	}
}