import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] array = {0,0,0}; array {0,0,0} 0 0 0 boolean b = true; b true for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		} {
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		} int[] nextArray = new int[3]; nextArray new int[3] 3 for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				nextArray[j] = sc.nextInt();
			} {
				nextArray[j] = sc.nextInt();
			} nextArray[j] = sc.nextInt() nextArray[j] nextArray j sc.nextInt() sc.nextInt sc int t = nextArray[0] - array[0]; t nextArray[0] - array[0] nextArray[0] nextArray 0 array[0] array 0 int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]); length Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]) Math.abs(nextArray[1] - array[1]) Math.abs Math nextArray[1] - array[1] nextArray[1] nextArray 1 array[1] array 1 Math.abs(nextArray[2] - array[2]) Math.abs Math nextArray[2] - array[2] nextArray[2] nextArray 2 array[2] array 2 if(!(b = t >= length && (t - length) % 2 == 0)) break; !(b = t >= length && (t - length) % 2 == 0) (b = t >= length && (t - length) % 2 == 0) b t >= length && (t - length) % 2 == 0 t >= length t length (t - length) % 2 == 0 (t - length) % 2 (t - length) t length 2 0 break; System.out.println(b ? "Yes" : "No") System.out.println System.out System System.out b ? "Yes" : "No" b "Yes" "No" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] array = {0,0,0};
		boolean b = true;
		for(int i = 0; i < n; i++){
			int[] nextArray = new int[3];
			for(int j = 0; j < 3; j++){
				nextArray[j] = sc.nextInt();
			}
			int t = nextArray[0] - array[0];
			int length = Math.abs(nextArray[1] - array[1]) + Math.abs(nextArray[2] - array[2]);
			if(!(b = t >= length && (t - length) % 2 == 0)) break;
		}
		System.out.println(b ? "Yes" : "No");
	}
}
