import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} main {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean result =true; result true for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		} int i=0; int i=0; i 0 N>i N i i++ i++ i {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		} {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		} int t =sc.nextInt(); t sc.nextInt() sc.nextInt sc int a =sc.nextInt(); a sc.nextInt() sc.nextInt sc int b =sc.nextInt(); b sc.nextInt() sc.nextInt sc if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			} !(t-a-b>=0 && (t-a-b)%2==0) (t-a-b>=0 && (t-a-b)%2==0) t-a-b>=0 t-a-b t-a-b t a b 0 (t-a-b)%2==0 (t-a-b)%2 (t-a-b) t-a-b t a b 2 0 {
				result =false;
			} result =false result false if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} result {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		//N回ループ、a,bについてt回目のループ（＝t秒後）について可能か調べる
		Scanner sc = new Scanner(System.in);
		//Nの入力
		int N =sc.nextInt();
		boolean result =true;
		for(int i=0;N>i;i++) {
		int t =sc.nextInt();
		int a =sc.nextInt();
		int b =sc.nextInt();
			if(!(t-a-b>=0 && (t-a-b)%2==0)) {
				result =false;
			}
		}
		if(result){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}
