import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int t[] = new int[n + 1]; t new int[n + 1] n + 1 n 1 int x[] = new int[n + 1]; x new int[n + 1] n + 1 n 1 int y[] = new int[n + 1]; y new int[n + 1] n + 1 n 1 t[0] = 0 t[0] t 0 0 x[0] = 0 x[0] x 0 0 y[0] = 0 y[0] y 0 0 for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		} {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		} String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " t[i + 1] = Integer.parseInt(str[0]) t[i + 1] t i + 1 i 1 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 x[i + 1] = Integer.parseInt(str[1]) x[i + 1] x i + 1 i 1 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 y[i + 1] = Integer.parseInt(str[2]) y[i + 1] y i + 1 i 1 Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		} {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		} int dt = t[i + 1] - t[i]; dt t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]); dist Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]) Math.abs(x[i + 1] - x[i]) Math.abs Math x[i + 1] - x[i] x[i + 1] x i + 1 i 1 x[i] x i Math.abs(y[i + 1] - y[i]) Math.abs Math y[i + 1] - y[i] y[i + 1] y i + 1 i 1 y[i] y i if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			} dt < dist || dt % 2 != dist % 2 dt < dist dt dist dt % 2 != dist % 2 dt % 2 dt 2 dist % 2 dist 2 {
				System.out.println("No");
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; 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[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		int t[] = new int[n + 1];
		int x[] = new int[n + 1];
		int y[] = new int[n + 1];

		t[0] = 0;
		x[0] = 0;
		y[0] = 0;

		for (int i = 0; i < n; i++) {
			String str[] = br.readLine().split(" ");
			t[i + 1] = Integer.parseInt(str[0]);
			x[i + 1] = Integer.parseInt(str[1]);
			y[i + 1] = Integer.parseInt(str[2]);
		}
		for (int i = 0; i < n; i++) {
			int dt = t[i + 1] - t[i];
			int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
			if (dt < dist || dt % 2 != dist % 2) {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}