import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	}
}


 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) int N = reader.nextInt(); N reader.nextInt() reader.nextInt reader String ans = "Yes"; ans "Yes" int t = 0; t 0 int x = 0; x 0 int y = 0; y 0 for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		} {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		} t = reader.nextInt() - t t reader.nextInt() - t reader.nextInt() reader.nextInt reader t x = Math.abs(reader.nextInt() - x) x Math.abs(reader.nextInt() - x) Math.abs Math reader.nextInt() - x reader.nextInt() reader.nextInt reader x y = Math.abs(reader.nextInt() - y) y Math.abs(reader.nextInt() - y) Math.abs Math reader.nextInt() - y reader.nextInt() reader.nextInt reader y int gap = x + y; gap x + y x y if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			} gap > t || gap % 2 != t % 2 gap > t gap t gap % 2 != t % 2 gap % 2 gap 2 t % 2 t 2 {
				ans = "No";
			} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String ans = "Yes";

		int t = 0;
		int x = 0;
		int y = 0;
		for (int i = 0; i < N; i++) {
			t = reader.nextInt() - t;
			x = Math.abs(reader.nextInt() - x);
			y = Math.abs(reader.nextInt() - y);
			int gap = x + y;
			if (gap > t || gap % 2 != t % 2) {
				ans = "No";
			}
		}


		System.out.println(ans);
		reader.close();
	}
}



