import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    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 = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] t = new int[n + 1]; t new int[n + 1] n + 1 n 1 int[] x = new int[n + 1]; x new int[n + 1] n + 1 n 1 int[] y = new int[n + 1]; y new int[n + 1] n + 1 n 1 for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    } {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    } t[i + 1] = sc.nextInt() t[i + 1] t i + 1 i 1 sc.nextInt() sc.nextInt sc x[i + 1] = sc.nextInt() x[i + 1] x i + 1 i 1 sc.nextInt() sc.nextInt sc y[i + 1] = sc.nextInt() y[i + 1] y i + 1 i 1 sc.nextInt() sc.nextInt sc String ans = "Yes"; ans "Yes" for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    } {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    } int td = t[i + 1] - t[i]; td t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i int xd = Math.abs(x[i + 1] - x[i]); xd Math.abs(x[i + 1] - x[i]) Math.abs Math x[i + 1] - x[i] x[i + 1] x i + 1 i 1 x[i] x i int yd = Math.abs(y[i + 1] - y[i]); yd Math.abs(y[i + 1] - y[i]) Math.abs Math y[i + 1] - y[i] y[i + 1] y i + 1 i 1 y[i] y i int s = xd + yd; s xd + yd xd yd if((((s - td) % 2) != 0) || (s > td)) ans = "No"; (((s - td) % 2) != 0) || (s > td) (((s - td) % 2) != 0) ((s - td) % 2) (s - td) s td 2 0 (s > td) s td ans = "No" ans "No" 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 = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    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 = sc.nextInt();
    int[] t = new int[n + 1];
    int[] x = new int[n + 1];
    int[] y = new int[n + 1];
    for(int i = 0; i < n; i++) {
      t[i + 1] = sc.nextInt();
      x[i + 1] = sc.nextInt();
      y[i + 1] = sc.nextInt();
    }
    String ans = "Yes";
    for(int i = 0; i < n; i++) {
      int td = t[i + 1] - t[i];
      int xd = Math.abs(x[i + 1] - x[i]);
      int yd = Math.abs(y[i + 1] - y[i]);
      int s = xd + yd;
      if((((s - td) % 2) != 0) || (s > td)) ans = "No";
    }
    System.out.println(ans);
  }
}