import java.util.Scanner;

class Main{
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.nextLine();
		String[] str =  new String[N+1];
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t [0] = 0;
		x [0] = 0;
		y [0] = 0;
		
		for(int i = 1; i <= N; i++ ) {
			str[i]= sc.nextLine(); 
		}
		sc.close();
		
		for(int i = 1; i <= N; i++) {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		}
		
		for(int j = 0; j < N; j++) {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		}
		System.out.println("Yes");
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.nextLine();
		String[] str =  new String[N+1];
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t [0] = 0;
		x [0] = 0;
		y [0] = 0;
		
		for(int i = 1; i <= N; i++ ) {
			str[i]= sc.nextLine(); 
		}
		sc.close();
		
		for(int i = 1; i <= N; i++) {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		}
		
		for(int j = 0; j < N; j++) {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		}
		System.out.println("Yes");
	}
} Main public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.nextLine();
		String[] str =  new String[N+1];
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t [0] = 0;
		x [0] = 0;
		y [0] = 0;
		
		for(int i = 1; i <= N; i++ ) {
			str[i]= sc.nextLine(); 
		}
		sc.close();
		
		for(int i = 1; i <= N; i++) {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		}
		
		for(int j = 0; j < N; j++) {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		}
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.nextLine();
		String[] str =  new String[N+1];
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t [0] = 0;
		x [0] = 0;
		y [0] = 0;
		
		for(int i = 1; i <= N; i++ ) {
			str[i]= sc.nextLine(); 
		}
		sc.close();
		
		for(int i = 1; i <= N; i++) {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		}
		
		for(int j = 0; j < N; j++) {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		}
		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 sc.nextLine() sc.nextLine sc String[] str =  new String[N+1]; str new String[N+1] N+1 N 1 int[] t = new int[N+1]; t new int[N+1] N+1 N 1 int[] x = new int[N+1]; x new int[N+1] N+1 N 1 int[] y = new int[N+1]; y new int[N+1] N+1 N 1 t [0] = 0 t [0] t 0 0 x [0] = 0 x [0] x 0 0 y [0] = 0 y [0] y 0 0 for(int i = 1; i <= N; i++ ) {
			str[i]= sc.nextLine(); 
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			str[i]= sc.nextLine(); 
		} {
			str[i]= sc.nextLine(); 
		} str[i]= sc.nextLine() str[i] str i sc.nextLine() sc.nextLine sc sc.close() sc.close sc for(int i = 1; i <= N; i++) {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		} {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		} String[] s = str[i].split(" "); s str[i].split(" ") str[i].split str[i] str i " " t[i] = Integer.parseInt(s[0]) t[i] t i Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 x[i] = Integer.parseInt(s[1]) x[i] x i Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 y[i] = Integer.parseInt(s[2]) y[i] y i Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 for(int j = 0; j < N; j++) {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		} {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		} int absT = t[j+1] - t[j]; absT t[j+1] - t[j] t[j+1] t j+1 j 1 t[j] t j int absX = Math.abs(x[j+1] - x[j]); absX Math.abs(x[j+1] - x[j]) Math.abs Math x[j+1] - x[j] x[j+1] x j+1 j 1 x[j] x j int absY = Math.abs(y[j+1] - y[j]); absY Math.abs(y[j+1] - y[j]) Math.abs Math y[j+1] - y[j] y[j+1] y j+1 j 1 y[j] y j if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } absT < absX + absY || absT % 2 != (absX + absY) % 2 absT < absX + absY absT absX + absY absX absY absT % 2 != (absX + absY) % 2 absT % 2 absT 2 (absX + absY) % 2 (absX + absY) absX absY 2 {
                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 System.out.println("Yes") System.out.println System.out System System.out "Yes" String arg[] arg
import java.util.Scanner;

class Main{
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.nextLine();
		String[] str =  new String[N+1];
		int[] t = new int[N+1];
		int[] x = new int[N+1];
		int[] y = new int[N+1];
		t [0] = 0;
		x [0] = 0;
		y [0] = 0;
		
		for(int i = 1; i <= N; i++ ) {
			str[i]= sc.nextLine(); 
		}
		sc.close();
		
		for(int i = 1; i <= N; i++) {
			String[] s = str[i].split(" ");
			t[i] = Integer.parseInt(s[0]);
			x[i] = Integer.parseInt(s[1]);
			y[i] = Integer.parseInt(s[2]);
		}
		
		for(int j = 0; j < N; j++) {
			int absT = t[j+1] - t[j];
			int absX = Math.abs(x[j+1] - x[j]);
			int absY = Math.abs(y[j+1] - y[j]);
	
            if(absT < absX + absY || absT % 2 != (absX + absY) % 2 ) {
                System.out.println("No");
                System.exit(0);
            } 
		}
		System.out.println("Yes");
	}
}