import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    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 Boolean result = false; result false int t = 0; t 0 int x = 0; x 0 int y = 0; y 0 for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    } {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    } t = sc.nextInt() - t t sc.nextInt() - t sc.nextInt() sc.nextInt sc t x = Math.abs(sc.nextInt() - x) x Math.abs(sc.nextInt() - x) Math.abs Math sc.nextInt() - x sc.nextInt() sc.nextInt sc x y = Math.abs(sc.nextInt() - y) y Math.abs(sc.nextInt() - y) Math.abs Math sc.nextInt() - y sc.nextInt() sc.nextInt sc y if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      } x + y > t || t % 2 != (x + y) % 2 x + y > t x + y x y t t % 2 != (x + y) % 2 t % 2 t 2 (x + y) % 2 (x + y) x y 2 {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; 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();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    Boolean result = false;
    int t = 0;
    int x = 0;
    int y = 0;

    for (int i = 0; i < n; i++) {
      t = sc.nextInt() - t;
      x = Math.abs(sc.nextInt() - x);
      y = Math.abs(sc.nextInt() - y);

      if (x + y > t || t % 2 != (x + y) % 2) {
        System.out.println("No");
        return;
      }
    }
    System.out.println("Yes");
  }
}
