import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
      	int t = 0;
      	int x = 0;
      	int y = 0;
 
      for (int i=0; i<N; i++) {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      }
      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 t = 0;
      	int x = 0;
      	int y = 0;
 
      for (int i=0; i<N; i++) {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      }
      System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
      	int t = 0;
      	int x = 0;
      	int y = 0;
 
      for (int i=0; i<N; i++) {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      }
      System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
      	int t = 0;
      	int x = 0;
      	int y = 0;
 
      for (int i=0; i<N; i++) {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      }
      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 = 0; t 0 int x = 0; x 0 int y = 0; y 0 for (int i=0; i<N; i++) {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      } {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      } int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc int dt = T - t; dt T - t T t int dist = Math.abs(X - x) + Math.abs(Y - y); dist Math.abs(X - x) + Math.abs(Y - y) Math.abs(X - x) Math.abs Math X - x X x Math.abs(Y - y) Math.abs Math Y - y Y y if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        } (dist > dt) || ((dist - dt) % 2 != 0) (dist > dt) dist dt ((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; t = T t T x = X x X y = Y y Y 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 t = 0;
      	int x = 0;
      	int y = 0;
 
      for (int i=0; i<N; i++) {
        int T = sc.nextInt();
        int X = sc.nextInt();
        int Y = sc.nextInt();
        
        int dt = T - t;
        int dist = Math.abs(X - x) + Math.abs(Y - y);
        if ((dist > dt) || ((dist - dt) % 2 != 0)) {
          System.out.println("No");
          return;
        }
        //移動した場所を設定
        t = T;
        x = X;
        y = Y;
      }
      System.out.println("Yes");
    }
}