import java.util.Scanner;

public class Main {
		static Scanner sc = new Scanner(System.in);
		public static void main(String[] args) {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		}
	} import java.util.Scanner; Scanner java.util public class Main {
		static Scanner sc = new Scanner(System.in);
		public static void main(String[] args) {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		}
	} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		} main {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t t x x y y dis; dis String ans = "Yes"; ans "Yes" for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			} {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			} t = sc.nextInt() t sc.nextInt() sc.nextInt sc x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc dis = x+y dis x+y x y if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				} dis > t dis t {
					ans = "No";
					break;
				} ans = "No" ans "No" break; {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				} if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					} (t-dis)%2 == 1 (t-dis)%2 (t-dis) t dis 2 1 {
						ans = "No";
						break;
					} ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
		static Scanner sc = new Scanner(System.in);
		public static void main(String[] args) {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		}
	} public class Main {
		static Scanner sc = new Scanner(System.in);
		public static void main(String[] args) {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		}
	} Main
import java.util.Scanner;

public class Main {
		static Scanner sc = new Scanner(System.in);
		public static void main(String[] args) {
			int n = sc.nextInt();
			
			int t,x,y,dis;
			String ans = "Yes";
			for (int i=0; i<n; i++) {
				t = sc.nextInt();
				x = sc.nextInt();
				y = sc.nextInt();
				dis = x+y;
				if (dis > t) {
					ans = "No";
					break;
				}
				else {
					if ((t-dis)%2 == 1) {
						ans = "No";
						break;
					}
				}
			}
			
			System.out.println(ans);
		}
	}