import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    }
  } import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    }
  } Main public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    } main {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int t[] = new int[n+1]; t new int[n+1] n+1 n 1 int x[] = new int[n+1]; x new int[n+1] n+1 n 1 int y[] = new int[n+1]; y new int[n+1] n+1 n 1 t[0]=0 t[0] t 0 0 x[0]=0 x[0] x 0 0 y[0]=0 y[0] y 0 0 for(int i=0;i<n;i++){
        t[i+1] = scan.nextInt();
        x[i+1] = scan.nextInt();
        y[i+1] = scan.nextInt();
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        t[i+1] = scan.nextInt();
        x[i+1] = scan.nextInt();
        y[i+1] = scan.nextInt();
      } {
        t[i+1] = scan.nextInt();
        x[i+1] = scan.nextInt();
        y[i+1] = scan.nextInt();
      } t[i+1] = scan.nextInt() t[i+1] t i+1 i 1 scan.nextInt() scan.nextInt scan x[i+1] = scan.nextInt() x[i+1] x i+1 i 1 scan.nextInt() scan.nextInt scan y[i+1] = scan.nextInt() y[i+1] y i+1 i 1 scan.nextInt() scan.nextInt scan boolean can = true; can true for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      } {
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      } int dt = t[i+1]-t[i]; dt t[i+1]-t[i] t[i+1] t i+1 i 1 t[i] t i int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]); dist Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]) Math.abs(x[i+1]-x[i]) Math.abs Math x[i+1]-x[i] x[i+1] x i+1 i 1 x[i] x i Math.abs(y[i+1]-y[i]) Math.abs Math y[i+1]-y[i] y[i+1] y i+1 i 1 y[i] y i if(dt<dist) can = false; dt<dist dt dist can = false can false if(dt%2!=dist%2) can = false; dt%2!=dist%2 dt%2 dt 2 dist%2 dist 2 can = false can false String ans = can?"Yes":"No"; ans can?"Yes":"No" can "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    }
  } public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    }
  } Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int n = scan.nextInt();
      int t[] = new int[n+1];
      int x[] = new int[n+1];
      int y[] = new int[n+1];

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

      boolean can = true;
      for(int i=0;i<n;i++){
        int dt = t[i+1]-t[i];
        int dist = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
        if(dt<dist) can = false;
        if(dt%2!=dist%2) can = false;
      }

      String ans = can?"Yes":"No";
      System.out.println(ans);
      
    }
  }
