import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	}
} Main public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	} main {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	} try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		} {
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int[]t = new int[N+1]; t new int[N+1] N+1 N 1 int[]x = new int[N+1]; x new int[N+1] N+1 N 1 int[]y = new int[N+1]; y new int[N+1] N+1 N 1 boolean possi = true; possi true for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			} int i = 1; int i = 1; i 1 i<=N i N i++ i++ i {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			} {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			} t[i] = scan.nextInt() t[i] t i scan.nextInt() scan.nextInt scan x[i] = scan.nextInt() x[i] x i scan.nextInt() scan.nextInt scan y[i] = scan.nextInt() y[i] y i scan.nextInt() scan.nextInt scan for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			} int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			} {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			} int sa = t[i+1]-t[i]; sa t[i+1]-t[i] t[i+1] t i+1 i 1 t[i] t i int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]); saitan Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]) Math.abs(x[i+1]-x[i]) Math.abs Math x[i+1]-x[i] x[i+1] x i+1 i 1 x[i] x i Math.abs(y[i+1]-y[i]) Math.abs Math y[i+1]-y[i] y[i+1] y i+1 i 1 y[i] y i if(sa<saitan) {
					possi = false;
					break;
				} sa<saitan sa saitan {
					possi = false;
					break;
				} possi = false possi false break; if((sa-saitan)%2==1) {
					possi = false;
					break;
				} (sa-saitan)%2==1 (sa-saitan)%2 (sa-saitan) sa saitan 2 1 {
					possi = false;
					break;
				} possi = false possi false break; System.out.println(possi?"Yes":"No") System.out.println System.out System System.out possi?"Yes":"No" possi "Yes" "No" String[]args args public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	}
} public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int[]t = new int[N+1];
			int[]x = new int[N+1];
			int[]y = new int[N+1];
			boolean possi = true;
			
			for(int i = 1;i<=N;i++) {
				t[i] = scan.nextInt();
				x[i] = scan.nextInt();
				y[i] = scan.nextInt();
			}
			
			for(int i = 0;i<N;i++) {
				int sa = t[i+1]-t[i];
				
				//System.out.println(sa);
				
				int saitan = Math.abs(x[i+1]-x[i])+Math.abs(y[i+1]-y[i]);
				//System.out.println(saitan);
				
				
				if(sa<saitan) {
					possi = false;
					break;
				}
				
				if((sa-saitan)%2==1) {
					possi = false;
					break;
				}
				
				
				
			}
			
			
			System.out.println(possi?"Yes":"No");
			
			
		}	
	}
}
