import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;  
      	int dxy = 0;
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        }
      System.out.println("Yes");
   	}
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;  
      	int dxy = 0;
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        }
      System.out.println("Yes");
   	}
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;  
      	int dxy = 0;
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        }
      System.out.println("Yes");
   	} main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;  
      	int dxy = 0;
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        }
      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 int tb = 0; tb 0 int xb = 0; xb 0 int yb = 0; yb 0 int ta = 0; ta 0 int xa = 0; xa 0 int ya = 0; ya 0 int dt = 0; dt 0 int dxy = 0; dxy 0 for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        } int i = 0 ; int i = 0 ; i 0 i < n i n i ++ i ++ i {
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        } {
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        } ta =  sc.nextInt() ta sc.nextInt() sc.nextInt sc xa =  sc.nextInt() xa sc.nextInt() sc.nextInt sc ya =  sc.nextInt() ya sc.nextInt() sc.nextInt sc dt = ta - tb dt ta - tb ta tb dxy = Math.abs(xa - xb) + Math.abs(ya - yb) dxy Math.abs(xa - xb) + Math.abs(ya - yb) Math.abs(xa - xb) Math.abs Math xa - xb xa xb Math.abs(ya - yb) Math.abs Math ya - yb ya yb if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            } (dt < dxy) || ((dxy - dt )%2 != 0 ) (dt < dxy) dt dxy ((dxy - dt )%2 != 0 ) (dxy - dt )%2 (dxy - dt ) dxy dt 2 0 {
            	System.out.println("No");
            	return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; tb = ta tb ta xb = xa xb xa yb = ya yb ya System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;  
      	int dxy = 0;
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dxy = Math.abs(xa - xb) + Math.abs(ya - yb);
          	
          	if((dt < dxy) || ((dxy - dt )%2 != 0 )){
            	System.out.println("No");
            	return;
            }
          	tb = ta;
          	xb = xa;
          	yb = ya;
        }
      System.out.println("Yes");
   	}
}
