import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    System.out.println("Yes");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    System.out.println("Yes");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    System.out.println("Yes");
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    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 px = 0 px 0 py = 0 py 0 pt = 0; pt 0 for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    } {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = 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 int sum = Math.abs(x-px) + Math.abs(y-py); sum Math.abs(x-px) + Math.abs(y-py) Math.abs(x-px) Math.abs Math x-px x px Math.abs(y-py) Math.abs Math y-py y py if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      } (t - pt) % 2 != sum % 2 || sum > t - pt (t - pt) % 2 != sum % 2 (t - pt) % 2 (t - pt) t pt 2 sum % 2 sum 2 sum > t - pt sum t - pt t pt {
        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 px = x px x py = y py y pt = t pt t System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    System.out.println("Yes");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    System.out.println("Yes");
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int px = 0, py = 0, pt = 0;
    for(int i = 0; i < n; i++){
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = Math.abs(x-px) + Math.abs(y-py);
      if((t - pt) % 2 != sum % 2 || sum > t - pt){
        System.out.println("No");
        System.exit(0);
      }
      px = x;
      py = y;
      pt = t;
    }
    System.out.println("Yes");
  }
}