import java.util.*;

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