import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in String ans = "Yes"; ans "Yes" for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		} {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		} int t = in.nextInt(); t in.nextInt() in.nextInt in int x = in.nextInt(); x in.nextInt() in.nextInt in int y = in.nextInt(); y in.nextInt() in.nextInt in if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			} t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0)) t < x + y t x + y x y ((t % 2 == 0) != ((x + y) % 2 == 0)) (t % 2 == 0) t % 2 t 2 0 ((x + y) % 2 == 0) (x + y) % 2 (x + y) x y 2 0 {
				ans = "No";
				break;
			} ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans in.close() in.close in String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		String ans = "Yes";
		for (int i = 0; i < N; i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if (t < x + y || ((t % 2 == 0) != ((x + y) % 2 == 0))) {
				ans = "No";
				break;
			}
		}
		System.out.println(ans);
		in.close();
	}
}