import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int[] point = { 0, 0 };

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		boolean isSuccess = true;
		int currentTime = 0;
		for (int i = 0; i < n; i++) {
			int t = Integer.parseInt(sc.next());
			int x = Integer.parseInt(sc.next());
			int y = Integer.parseInt(sc.next());

			int move = Math.abs(x - point[0]) + Math.abs(y - point[1]);

			int diftime = t - currentTime;
			if (move > diftime || move % 2 != diftime % 2) {
				isSuccess = false;
				break;
			}
			currentTime = t;
			point[0] = x;
			point[1] = y;

		}

		if (isSuccess) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz