import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] T = new int[N]; T new int[N] N int[] X = new int[N]; X new int[N] N int[] Y = new int[N]; Y new int[N] N for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		} {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		} T[i] = Integer.parseInt(sc.next()) T[i] T i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc X[i] = Integer.parseInt(sc.next()) X[i] X i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Y[i] = Integer.parseInt(sc.next()) Y[i] Y i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			} !(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i] !(T[i]%2==(X[i] + Y[i])%2) (T[i]%2==(X[i] + Y[i])%2) T[i]%2 T[i] T i 2 (X[i] + Y[i])%2 (X[i] + Y[i]) X[i] X i Y[i] Y i 2 X[i] + Y[i] > T[i] X[i] + Y[i] X[i] X i Y[i] Y i T[i] T i {
				System.out.println("No");
				sc.close();
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc return; sc.close() sc.close sc System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int[] T = new int[N];
		int[] X = new int[N];
		int[] Y = new int[N];
		for(int i = 0;i < N;i++) {
			T[i] = Integer.parseInt(sc.next());
			X[i] = Integer.parseInt(sc.next());
			Y[i] = Integer.parseInt(sc.next());
			if(!(T[i]%2==(X[i] + Y[i])%2)
					|| X[i] + Y[i] > T[i]) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
}