import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  } main {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int pt = 0; pt 0 int px = 0; px 0 int py = 0; py 0 for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    } {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    } int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner int dist = Math.abs(x - px) + Math.abs(y - py); dist 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 int dt = t - pt; dt t - pt t pt if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      } dist > dt || (dt - dist) % 2 != 0 dist > dt dist dt (dt - dist) % 2 != 0 (dt - dist) % 2 (dt - dist) dt dist 2 0 {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; pt = t pt t px = x px x py = y py y 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 scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int pt = 0;
    int px = 0;
    int py = 0;
    for (int i = 0; i < N; i++) {
      int t = scanner.nextInt();
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int dist = Math.abs(x - px) + Math.abs(y - py);
      int dt = t - pt;
      if (dist > dt || (dt - dist) % 2 != 0) {
        System.out.println("No");
        return;
      }
      pt = t;
      px = x;
      py = y;
    }
    System.out.println("Yes");
  }
}
