import java.util.*;	
public class Main {	
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    }
} import java.util.*; util.* java public class Main {	
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    } main {
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String linew = sc.nextLine(); linew sc.nextLine() sc.nextLine sc boolean flg = false; flg false int s = 0; s 0 int x = 0; x 0 int y = 0; y 0 for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      } {
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      } String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String str[] = line.split(" "); str line.split(" ") line.split line " " s = Integer.parseInt(str[0]) - s s Integer.parseInt(str[0]) - s Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 s x = Integer.parseInt(str[1]) - x x Integer.parseInt(str[1]) - x Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 x y = Integer.parseInt(str[2]) - y y Integer.parseInt(str[2]) - y Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 y if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        } s >= x+y && ((s-(x+y))%2==0) s >= x+y s x+y x y ((s-(x+y))%2==0) (s-(x+y))%2 (s-(x+y)) s (x+y) x y 2 0 {
          flg = true;
        } flg = true flg true {
          flg = false;
          break;
        } flg = false flg false break; if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      } flg {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 public class Main {	
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    }
} public class Main {	
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    }
} Main
import java.util.*;	
public class Main {	
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      Integer n = sc.nextInt();
      String linew = sc.nextLine();
      boolean flg = false;
      int s = 0;
      int x = 0;
      int y = 0;
      for(int i=0;i<n;i++){
        String line = sc.nextLine();
        String str[] = line.split(" ");
        s = Integer.parseInt(str[0]) - s ;
        x = Integer.parseInt(str[1]) - x ;
        y = Integer.parseInt(str[2]) - y ;

        if(s >= x+y && ((s-(x+y))%2==0)){
          flg = true;
        }else{
          flg = false;
          break;
        }    
      }
      if(flg){System.out.println("Yes");
      }else{System.out.println("No");
      }
    }
}