import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		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 tt = 0; tt 0 int tx = 0; tx 0 int ty = 0; ty 0 for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		} 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 dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		} {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		} 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 dt = Math.abs(t - tt); dt Math.abs(t - tt) Math.abs Math t - tt t tt int dx = Math.abs(x - tx); dx Math.abs(x - tx) Math.abs Math x - tx x tx int dy = Math.abs(y - ty); dy Math.abs(y - ty) Math.abs Math y - ty y ty if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			} dt < dx + dy || (dt - dx - dy) % 2 == 1 dt < dx + dy dt dx + dy dx dy (dt - dx - dy) % 2 == 1 (dt - dx - dy) % 2 (dt - dx - dy) dt - dx - dy dt dx dy 2 1 {
				System.out.println("No");
				sc.close();
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc return; sc.close() sc.close sc 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 Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int tt = 0;
		int tx = 0;
		int ty = 0;
		for (int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			int dt = Math.abs(t - tt);
			int dx = Math.abs(x - tx);
			int dy = Math.abs(y - ty);
			if (dt < dx + dy || (dt - dx - dy) % 2 == 1) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		sc.close();
		System.out.println("Yes");
	}
}
