import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    }
} import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    }
} Main public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    } main {
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner sc = new Scanner(inputStream); sc new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 boolean judge = true; judge true for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      } {
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      } int postT = Integer.parseInt(sc.next()); postT Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int postX = Integer.parseInt(sc.next()); postX Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int postY = Integer.parseInt(sc.next()); postY Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int dt = postT - preT; dt postT - preT postT preT int dist = Math.abs(postX - preX) + Math.abs(postY - preY); dist Math.abs(postX - preX) + Math.abs(postY - preY) Math.abs(postX - preX) Math.abs Math postX - preX postX preX Math.abs(postY - preY) Math.abs Math postY - preY postY preY if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        } dt < dist || (dt - dist) % 2 != 0 dt < dist dt dist (dt - dist) % 2 != 0 (dt - dist) % 2 (dt - dist) dt dist 2 0 {
        	judge = false;
          	break;
        } judge = false judge false break; preX = postX preX postX preY = postY preY postY preT = postT preT postT if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      } judge {
      	 out.println("Yes");
      } out.println("Yes") out.println out "Yes" {
     	 out.println("No");
      } out.println("No") out.println out "No" out.close() out.close out String[] args args public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    }
} public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
      InputStream inputStream = System.in;
      OutputStream outputStream = System.out;
      Scanner sc = new Scanner(inputStream);
      PrintWriter out = new PrintWriter(outputStream);
      int N = Integer.parseInt(sc.next());
      int preT = 0;
      int preX = 0;
      int preY = 0;
      
      boolean judge = true;
      for(int i = 0; i < N; i++){
      	int postT = Integer.parseInt(sc.next());
        int postX = Integer.parseInt(sc.next());
        int postY = Integer.parseInt(sc.next());
        
        int dt = postT - preT;
        int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
        if(dt < dist || (dt - dist) % 2 != 0){
        	judge = false;
          	break;
        }
        preX = postX;
        preY = postY;
        preT = postT;
      }
      
      if(judge){
      	 out.println("Yes");
      }else {
     	 out.println("No");
      }
      out.close();
    }
}