import java.util.*;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
        int n = sc.nextInt();        
 
        int ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        }
 
    } 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 ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        }
 
    } Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
        int n = sc.nextInt();        
 
        int ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        } main {
        Scanner sc = new Scanner(System.in);
      
        int n = sc.nextInt();        
 
        int ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans = 0; ans 0 int xtmp = 0; xtmp 0 int ytmp = 0; ytmp 0 int ttmp = 0; ttmp 0 for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        } 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 sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        } {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        } 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 sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp); sumtmp Math.abs(x - xtmp) + Math.abs(y - ytmp) Math.abs(x - xtmp) Math.abs Math x - xtmp x xtmp Math.abs(y - ytmp) Math.abs Math y - ytmp y ytmp if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          } sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0 sumtmp <= (t - ttmp) sumtmp (t - ttmp) t ttmp ((t - ttmp) - sumtmp) % 2 == 0 ((t - ttmp) - sumtmp) % 2 ((t - ttmp) - sumtmp) (t - ttmp) t ttmp sumtmp 2 0 {
          } {
            System.out.println("No");
            return;
          } System.out.println("No") System.out.println System.out System System.out "No" return; xtmp = x xtmp x ytmp = y ytmp y ttmp = t ttmp t System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
        int n = sc.nextInt();        
 
        int ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        }
 
    } public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
        int n = sc.nextInt();        
 
        int ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        }
 
    } Main
import java.util.*;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      
        int n = sc.nextInt();        
 
        int ans = 0;
        int xtmp = 0;
        int ytmp = 0;
        int ttmp = 0;
 
        for (int i = 0; i < n; i++) {
          int t = sc.nextInt();
          int x = sc.nextInt();
          int y = sc.nextInt();
          
          int sumtmp = Math.abs(x - xtmp) + Math.abs(y - ytmp);
          
          if (sumtmp <= (t - ttmp) && ((t - ttmp) - sumtmp) % 2 == 0){
          } else {
            System.out.println("No");
            return;
          }
          xtmp = x;
          ytmp = y;
          ttmp = t;
        }
 
        System.out.println("Yes");
 
        sc.close();
 
        }
 
    }