import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    final Scanner scanner = new Scanner(System.in);
    final int n = scanner.nextInt();
    int c = 0;
    int[] pos = new int[2];
    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    }
    System.out.println("Yes");
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    final Scanner scanner = new Scanner(System.in);
    final int n = scanner.nextInt();
    int c = 0;
    int[] pos = new int[2];
    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    }
    System.out.println("Yes");
  }
} Main public static void main(String[] args) {
    final Scanner scanner = new Scanner(System.in);
    final int n = scanner.nextInt();
    int c = 0;
    int[] pos = new int[2];
    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    }
    System.out.println("Yes");
  } main {
    final Scanner scanner = new Scanner(System.in);
    final int n = scanner.nextInt();
    int c = 0;
    int[] pos = new int[2];
    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    }
    System.out.println("Yes");
  } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int c = 0; c 0 int[] pos = new int[2]; pos new int[2] 2 for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    } {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    } int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner int[] next = new int[2]; next new int[2] 2 next[0] = scanner.nextInt() next[0] next 0 scanner.nextInt() scanner.nextInt scanner next[1] = scanner.nextInt() next[1] next 1 scanner.nextInt() scanner.nextInt scanner int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]); m Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]) Math.abs(pos[0] - next[0]) Math.abs Math pos[0] - next[0] pos[0] pos 0 next[0] next 0 Math.abs(pos[1] - next[1]) Math.abs Math pos[1] - next[1] pos[1] pos 1 next[1] next 1 int d = t - c; d t - c t c if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      } m > d || (d - m) % 2 == 1 m > d m d (d - m) % 2 == 1 (d - m) % 2 (d - m) d m 2 1 {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; c = t c t pos = next pos next System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    final Scanner scanner = new Scanner(System.in);
    final int n = scanner.nextInt();
    int c = 0;
    int[] pos = new int[2];
    for (int i = 0; i < n; i++) {
      int t = scanner.nextInt();
      int[] next = new int[2];
      next[0] = scanner.nextInt();
      next[1] = scanner.nextInt();
      int m = Math.abs(pos[0] - next[0]) + Math.abs(pos[1] - next[1]);
      int d = t - c;
      if (m > d || (d - m) % 2 == 1) {
        System.out.println("No");
        return;
      }
      c = t;
      pos = next;
    }
    System.out.println("Yes");
  }
}
