import java.util.*;

public 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 t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    }
    
    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 preT = 0;
    int preX = 0;
    int preY = 0;
    for (int i = 0; i < N; i++) {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    }
    
    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 t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    }
    
    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 t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = 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 preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 for (int i = 0; i < N; i++) {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = 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 diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    } {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = 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 diffT = t - preT; diffT t - preT t preT int diffX = Math.abs(x - preX); diffX Math.abs(x - preX) Math.abs Math x - preX x preX int diffY = Math.abs(y - preY); diffY Math.abs(y - preY) Math.abs Math y - preY y preY if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      } diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1 diffX + diffY > diffT diffX + diffY diffX diffY diffT (diffT-diffX-diffY)%2 == 1 (diffT-diffX-diffY)%2 (diffT-diffX-diffY) diffT-diffX-diffY diffT diffX diffY 2 1 {
        System.out.println("No");
        return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; preT = t preT t preX = x preX x preY = y preY y 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 preT = 0;
    int preX = 0;
    int preY = 0;
    for (int i = 0; i < N; i++) {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    }
    
    System.out.println("Yes");
  }
} public 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 t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    }
    
    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 preT = 0;
    int preX = 0;
    int preY = 0;
    for (int i = 0; i < N; i++) {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      
      int diffT = t - preT;
      int diffX = Math.abs(x - preX);
      int diffY = Math.abs(y - preY);
      
      if (diffX + diffY > diffT
          || (diffT-diffX-diffY)%2 == 1) {
        System.out.println("No");
        return;
      }
      
      preT = t;
      preX = x;
      preY = y;
    }
    
    System.out.println("Yes");
  }
}