import java.util.*;
 
public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String ans = "Yes"; ans "Yes" for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    } {
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    } String[] s = sc.nextLine().split(" "); s sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int t = Integer.parseInt(s[0]); t Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int x = Integer.parseInt(s[1]); x Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int y = Integer.parseInt(s[2]); y Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      } t < x+y || t%2 != (x+y)%2 t < x+y t x+y x y t%2 != (x+y)%2 t%2 t 2 (x+y)%2 (x+y) x y 2 {
        ans = "No";
        break;
      } ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans String[]args args public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.*;
 
public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    String ans = "Yes";
    for(int i = 0; i < N; i++){
      String[] s = sc.nextLine().split(" ");
      int t = Integer.parseInt(s[0]);
      int x = Integer.parseInt(s[1]);
      int y = Integer.parseInt(s[2]);
      
      if(t < x+y || t%2 != (x+y)%2 ){
        ans = "No";
        break;
      }
    }
    System.out.println(ans);
  }
}