import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		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 = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		System.out.println("Yes");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int now = 0; now 0 int x =0; x 0 int y = 0; y 0 for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		} {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		} int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int xt = sc.nextInt(); xt sc.nextInt() sc.nextInt sc int yt = sc.nextInt(); yt sc.nextInt() sc.nextInt sc int cost = Math.abs(x-xt)+Math.abs(y-yt); cost Math.abs(x-xt)+Math.abs(y-yt) Math.abs(x-xt) Math.abs Math x-xt x xt Math.abs(y-yt) Math.abs Math y-yt y yt if (cost>t-now) {
				System.out.println("No");
				return ;
			} cost>t-now cost t-now t now {
				System.out.println("No");
				return ;
			} System.out.println("No") System.out.println System.out System System.out "No" return ; if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			} (t-now-cost)%2!=0 (t-now-cost)%2 (t-now-cost) t-now-cost t now cost 2 0 {
				System.out.println("No");
				return ;
			} System.out.println("No") System.out.println System.out System System.out "No" return ; x = xt x xt y = yt y yt now = t now t 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 = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		System.out.println("Yes");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		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 = sc.nextInt();
		int now = 0;
		int x =0;
		int y = 0;
		for (int i=0;i<N;i++) {
			int t = sc.nextInt();
			int xt = sc.nextInt();
			int yt = sc.nextInt();
			int cost = Math.abs(x-xt)+Math.abs(y-yt);
			if (cost>t-now) {
				System.out.println("No");
				return ;
			}
			if((t-now-cost)%2!=0) {
				System.out.println("No");
				return ;
			}
			x = xt;
			y = yt;
			now = t;
		}
		System.out.println("Yes");
	}
}
