import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	}
}
 import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import java.math.BigInteger; BigInteger java.math public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] t = new int[n]; t new int[n] n int[] x = new int[n]; x new int[n] n int[] y = new int[n]; y new int[n] n for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		} {
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		} t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc String result = "Yes"; result "Yes" for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		} {
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		} int dx = 0; dx 0 int dy = 0; dy 0 int dt = 0; dt 0 if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    } i == 0 i 0 {
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    } dx = x[i] dx x[i] x i dy = y[i] dy y[i] y i dt = t[i] dt t[i] t i {
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    } dx = x[i] - x[i-1] dx x[i] - x[i-1] x[i] x i x[i-1] x i-1 i 1 dy = y[i] - y[i-1] dy y[i] - y[i-1] y[i] y i y[i-1] y i-1 i 1 dt = t[i] - t[i-1] dt t[i] - t[i-1] t[i] t i t[i-1] t i-1 i 1 int d = abs(dx) + abs(dy); d abs(dx) + abs(dy) abs(dx) abs dx abs(dy) abs dy if(d > dt || d%2 != dt%2) result = "No"; d > dt || d%2 != dt%2 d > dt d dt d%2 != dt%2 d%2 d 2 dt%2 dt 2 result = "No" result "No" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	}
} Main
import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		int[] t = new int[n];
		int[] x = new int[n];
		int[] y = new int[n];
		for(int i = 0; i < n; i++){
		    t[i] = sc.nextInt();
		    x[i] = sc.nextInt();
		    y[i] = sc.nextInt();
		}
		
		// 計算
		String result = "Yes";
		for(int i = 0; i < n; i++){
		    int dx = 0;
		    int dy = 0;
		    int dt = 0;
		    
		    if(i == 0){
		        dx = x[i];
		        dy = y[i];
		        dt = t[i];
		    }else{
		        dx = x[i] - x[i-1];
		        dy = y[i] - y[i-1];
		        dt = t[i] - t[i-1];
		    }
		    
		    int d = abs(dx) + abs(dy);
		    if(d > dt || d%2 != dt%2) result = "No";
		}
		
		
		// 出力
		System.out.println(result);
	}
}

