import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;
  		int keit=0;
		int keix=0;
  		int keiy=0;
  
		for(int c=0;c<n;c++){
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	}
    
 	if(ans==0){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }

    }
} import java.util.*; util.* java class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;
  		int keit=0;
		int keix=0;
  		int keiy=0;
  
		for(int c=0;c<n;c++){
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	}
    
 	if(ans==0){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }

    }
} Main public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;
  		int keit=0;
		int keix=0;
  		int keiy=0;
  
		for(int c=0;c<n;c++){
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	}
    
 	if(ans==0){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }

    } main {
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;
  		int keit=0;
		int keix=0;
  		int keiy=0;
  
		for(int c=0;c<n;c++){
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	}
    
 	if(ans==0){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }

    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans=0; ans 0 int keit=0; keit 0 int keix=0; keix 0 int keiy=0; keiy 0 for(int c=0;c<n;c++){
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	} int c=0; int c=0; c 0 c<n c n c++ c++ c {
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	} {
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	} int t=sc.nextInt(); t sc.nextInt() sc.nextInt sc int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc int y=sc.nextInt(); y sc.nextInt() sc.nextInt sc if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          } t%2==1&&(x+y)%2==0 t%2==1 t%2 t 2 1 (x+y)%2==0 (x+y)%2 (x+y) x y 2 0 {
          ans++;
          break;
          } ans++ ans break; if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          } t%2==0&&(x+y)%2==1 t%2==0 t%2 t 2 0 (x+y)%2==1 (x+y)%2 (x+y) x y 2 1 {
          ans++;
          break;
          } ans++ ans break; if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          } (Math.abs(x-keix)+Math.abs(y-keiy))>t-keit (Math.abs(x-keix)+Math.abs(y-keiy)) Math.abs(x-keix) Math.abs Math x-keix x keix Math.abs(y-keiy) Math.abs Math y-keiy y keiy t-keit t keit {
          ans++;
           break;
          } ans++ ans break; keix=x keix x keiy=y keiy y keit=t keit t if(ans==0){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 } ans==0 ans 0 {
    		System.out.println("Yes");
    	} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
     		System.out.println("No");
   	 } System.out.println("No") System.out.println System.out System System.out "No" 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 ans=0;
  		int keit=0;
		int keix=0;
  		int keiy=0;
  
		for(int c=0;c<n;c++){
    		 int t=sc.nextInt();
          	 int x=sc.nextInt();
          	 int y=sc.nextInt();
          if(t%2==1&&(x+y)%2==0){
          ans++;
          break;
          }else if(t%2==0&&(x+y)%2==1){
          ans++;
          break;
          }else if((Math.abs(x-keix)+Math.abs(y-keiy))>t-keit){
          ans++;
           break;
          }
          keix=x;
          keiy=y;
          keit=t;
    	}
    
 	if(ans==0){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }

    }
}
