import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    int preT=0;
    int preX=0;
    int preY=0;

    for (int i=0; i<N; i++) {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    }

    System.out.println("Yes");
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    int preT=0;
    int preX=0;
    int preY=0;

    for (int i=0; i<N; i++) {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    }

    System.out.println("Yes");
  }
} Main public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    int preT=0;
    int preX=0;
    int preY=0;

    for (int i=0; i<N; i++) {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    }

    System.out.println("Yes");
  } main {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    int preT=0;
    int preX=0;
    int preY=0;

    for (int i=0; i<N; i++) {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    }

    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 preT=0; preT 0 int preX=0; preX 0 int preY=0; preY 0 for (int i=0; i<N; i++) {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    } {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    } int postT=sc.nextInt(); postT sc.nextInt() sc.nextInt sc int postX=sc.nextInt(); postX sc.nextInt() sc.nextInt sc int postY=sc.nextInt(); postY sc.nextInt() sc.nextInt sc int dt=postT-preT; dt postT-preT postT preT int dist=Math.abs(postX-preX)+Math.abs(postY-preY); dist Math.abs(postX-preX)+Math.abs(postY-preY) Math.abs(postX-preX) Math.abs Math postX-preX postX preX Math.abs(postY-preY) Math.abs Math postY-preY postY preY if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      } (dt<dist) || ((dist-dt)%2!=0) (dt<dist) dt dist ((dist-dt)%2!=0) (dist-dt)%2 (dist-dt) dist dt 2 0 {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; preT=postT preT postT preX=postX preX postX preY=postY preY postY System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    int preT=0;
    int preX=0;
    int preY=0;

    for (int i=0; i<N; i++) {
      int postT=sc.nextInt();
      int postX=sc.nextInt();
      int postY=sc.nextInt();

      int dt=postT-preT;
      int dist=Math.abs(postX-preX)+Math.abs(postY-preY);
      if ((dt<dist) || ((dist-dt)%2!=0)) {
        System.out.println("No");
        return;
      }
      preT=postT;
      preX=postX;
      preY=postY;
    }

    System.out.println("Yes");
  }
}
