import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		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();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		in.close();
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in boolean travelable = true; travelable true for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				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(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		} {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				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(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			} x+y>t || (x+y-t)%2!=0 x+y>t x+y x y t (x+y-t)%2!=0 (x+y-t)%2 (x+y-t) x+y x y t 2 0 {
				travelable = false;
				break;
			} travelable = false travelable false break; if(travelable) System.out.println("Yes");
		else System.out.println("No"); travelable System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" 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();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		in.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		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();
		boolean travelable = true;
		for(int i=0;i<n;i++) {
			int t = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			if(x+y>t || (x+y-t)%2!=0) {
				travelable = false;
				break;
			}
		}
		if(travelable) System.out.println("Yes");
		else System.out.println("No");
		in.close();
	}

}
