import java.util.*;

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

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int nowx = 0, nowy = 0, nowt = 0;
		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dist = Math.abs(x - nowx) + Math.abs(y - nowy);
			if (((t - nowt) % 2 != dist % 2) || t - nowt < dist) {
				System.out.println("No");
				return;
			}
			nowx = x;
			nowy = y;
			nowt = t;
		}
		System.out.println("Yes");
	}
}