import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} Main InputStream in = System.in; in System.in System System.in PrintStream out = System.out; out System.out System System.out public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	} _main {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	} Scanner sc = new Scanner(in); sc new Scanner(in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int cx = 0; cx 0 int cy = 0; cy 0 int ct = 0; ct 0 String ans = "Yes"; ans "Yes" for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = 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 d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		} {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = 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 d = Math.abs(cx - x) + Math.abs(cy - y); d Math.abs(cx - x) + Math.abs(cy - y) Math.abs(cx - x) Math.abs Math cx - x cx x Math.abs(cy - y) Math.abs Math cy - y cy y if (t < d + ct) {
				ans = "No";
				break;
			} t < d + ct t d + ct d ct {
				ans = "No";
				break;
			} ans = "No" ans "No" break; if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			} (t - ct) % 2 != d % 2 (t - ct) % 2 (t - ct) t ct 2 d % 2 d 2 {
				ans = "No";
				break;
			} ans = "No" ans "No" break; cx = x cx x cy = y cy y ct = t ct t out.println(ans) out.println out ans sc.close() sc.close sc String[] args args public static void main(String[] args) {
		new Main()._main(args);
	} main {
		new Main()._main(args);
	} new Main()._main(args) new Main()._main new Main() args String[] args args @SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} nextIntArray {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} int[] result = new int[n]; result new int[n] n for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			result[i] = sc.nextInt();
		} {
			result[i] = sc.nextInt();
		} result[i] = sc.nextInt() result[i] result i sc.nextInt() sc.nextInt sc return result; result Scanner sc sc int n n @SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} nextIntArray1origin {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} int[] result = new int[n + 1]; result new int[n + 1] n + 1 n 1 for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			result[i] = sc.nextInt();
		} {
			result[i] = sc.nextInt();
		} result[i] = sc.nextInt() result[i] result i sc.nextInt() sc.nextInt sc return result; result Scanner sc sc int n n public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		int cx = 0;
		int cy = 0;
		int ct = 0;

		String ans = "Yes";

		for (int i = 0; i < N; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();

			int d = Math.abs(cx - x) + Math.abs(cy - y);

			if (t < d + ct) {
				ans = "No";
				break;
			}

			if ((t - ct) % 2 != d % 2) {
				ans = "No";
				break;
			}

			cx = x;
			cy = y;
			ct = t;
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
}
