import java.util.Scanner;

class Main{
	
	
	public static void main(String[] args) {
		new Main().Kei();
	}
	
	void Kei() {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.next());
		String g="";
		
		for(int i=0;i<N;i++) {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		}
		System.out.println(g);
		sc.close();
	}
	
}

 import java.util.Scanner; Scanner java.util class Main{
	
	
	public static void main(String[] args) {
		new Main().Kei();
	}
	
	void Kei() {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.next());
		String g="";
		
		for(int i=0;i<N;i++) {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		}
		System.out.println(g);
		sc.close();
	}
	
} Main public static void main(String[] args) {
		new Main().Kei();
	} main {
		new Main().Kei();
	} new Main().Kei() new Main().Kei new Main() String[] args args void Kei() {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.next());
		String g="";
		
		for(int i=0;i<N;i++) {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		}
		System.out.println(g);
		sc.close();
	} Kei {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.next());
		String g="";
		
		for(int i=0;i<N;i++) {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		}
		System.out.println(g);
		sc.close();
	} 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 String g=""; g "" for(int i=0;i<N;i++) {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		} {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		} int t=Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x=Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int y=Integer.parseInt(sc.next()); y Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc g="No" g "No" if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			} t>=x+y t x+y x y {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			} if((t-(x+y)+2)%2==0)
					g="Yes"; (t-(x+y)+2)%2==0 (t-(x+y)+2)%2 (t-(x+y)+2) t-(x+y) t (x+y) x y 2 2 0 g="Yes" g "Yes" if(g.equals("No"))
				break; g.equals("No") g.equals g "No" break; System.out.println(g) System.out.println System.out System System.out g sc.close() sc.close sc
import java.util.Scanner;

class Main{
	
	
	public static void main(String[] args) {
		new Main().Kei();
	}
	
	void Kei() {
		Scanner sc=new Scanner(System.in);
		int N=Integer.parseInt(sc.next());
		String g="";
		
		for(int i=0;i<N;i++) {
			int t=Integer.parseInt(sc.next());
			int x=Integer.parseInt(sc.next());
			int y=Integer.parseInt(sc.next());
			g="No";
			if(t>=x+y) {
				if((t-(x+y)+2)%2==0)
					g="Yes";
			}
			if(g.equals("No"))
				break;
		}
		System.out.println(g);
		sc.close();
	}
	
}


