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];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  System.out.println("Yes");


  }
} 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];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  System.out.println("Yes");


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

  int n = sc.nextInt();

  int[] t = new int[n];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  System.out.println("Yes");


  } main {
  Scanner sc = new Scanner(System.in);

  int n = sc.nextInt();

  int[] t = new int[n];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  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[] t = new int[n]; t new int[n] n int[] x = new int[n]; x new int[n] n int[] y = new int[n]; y new int[n] n int[] data = new int[n]; data new int[n] n for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  } {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  } t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc data[i] = x[i]+y[i] data[i] data i x[i]+y[i] x[i] x i y[i] y i for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  } {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  } if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    } (t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0) (t[i]%2==0&&data[i]%2==1) t[i]%2==0 t[i]%2 t[i] t i 2 0 data[i]%2==1 data[i]%2 data[i] data i 2 1 (t[i]%2==1&&data[i]%2==0) t[i]%2==1 t[i]%2 t[i] t i 2 1 data[i]%2==0 data[i]%2 data[i] data i 2 0 {
      System.out.println("No");
      System.exit(0);
    } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    } t[i]<x[i]+y[i] t[i] t i x[i]+y[i] x[i] x i y[i] y i {
      System.out.println("No");
      System.exit(0);
    } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 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();

  int[] t = new int[n];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  System.out.println("Yes");


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

  int n = sc.nextInt();

  int[] t = new int[n];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  System.out.println("Yes");


  }
} 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];
  int[] x = new int[n];
  int[] y = new int[n];
  int[] data = new int[n];

  for (int i = 0;i<n ;i++ ) {
    t[i] = sc.nextInt();
    x[i] = sc.nextInt();
    y[i] = sc.nextInt();
    data[i] = x[i]+y[i];
  }

  for (int i = 0;i<n ;i++ ) {
    if ((t[i]%2==0&&data[i]%2==1)||(t[i]%2==1&&data[i]%2==0)) {
      System.out.println("No");
      System.exit(0);
    }
    if (t[i]<x[i]+y[i]) {
      System.out.println("No");
      System.exit(0);
    }
  }
  System.out.println("Yes");


  }
}
