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 = new int[n][3];
		for(int i=0;i<n;i++) {
			array[i][0] = sc.nextInt();
			array[i][1] = sc.nextInt();
			array[i][2] = sc.nextInt();
		}
		int x=0,y=0,t=0,i;
		for(i=0;i<n;i++) {
			int sub = array[i][0]-t;
			if((x+y)%2==0 ) {
				if(sub%2==0) {
					if((array[i][1]+array[i][2])%2!=0) break;
				}else {
					if((array[i][1]+array[i][2])%2==0) break;
				}
			}else {
				if(sub%2==0) {
					if((array[i][1]+array[i][2])%2==0) break;
				}else {
					if((array[i][1]+array[i][2])%2!=0) break;
				}
			}
			if(MHD(x,y,array[i][1],array[i][2])>sub) break;
			x=array[i][1];
			y=array[i][2];
			t=array[i][0];
		}
		if(i==n) System.out.println("Yes");
		else System.out.println("No");
	}

	public static int MHD(int x, int y, int a, int b) {
		return Math.abs(x-a)+Math.abs(y-b);
	}
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz