	import java.util.*;
	
	
	
	public class Main {
	
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		}
		
		
	} import java.util.*; util.* java public class Main {
	
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		}
		
		
	} Main public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		} main {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			} {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			} int proT = sc.nextInt(); proT sc.nextInt() sc.nextInt sc int proX = sc.nextInt(); proX sc.nextInt() sc.nextInt sc int proY = sc.nextInt(); proY sc.nextInt() sc.nextInt sc int T = proT -preT; T proT -preT proT preT int goX = proX-preX; goX proX-preX proX preX int goY = proY-preY; goY proY-preY proY preY if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				} (goX+goY)>T || (T-goX-goY)%2 !=0 (goX+goY)>T (goX+goY) goX goY T (T-goX-goY)%2 !=0 (T-goX-goY)%2 (T-goX-goY) T-goX-goY T goX goY 2 0 {
					System.out.println("No");
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc String[] args args public class Main {
	
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		}
		
		
	} public class Main {
	
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		}
		
		
	} Main
	import java.util.*;
	
	
	
	public class Main {
	
		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int N = sc.nextInt();
			int preT = 0;
			int preX = 0;
			int preY = 0;
			
			for (int i=0;i<N;i++) {
				int proT = sc.nextInt();
				int proX = sc.nextInt();
				int proY = sc.nextInt();
				
				int T = proT -preT;
				int goX = proX-preX;
				int goY = proY-preY;
				
				if((goX+goY)>T || (T-goX-goY)%2 !=0) {
					System.out.println("No");
					return;
				}	
			}
			
			System.out.println("Yes");
			
			sc.close();
			
		}
		
		
	}