import java.util.Arrays;
import java.util.Scanner;

public class Main {
	void run() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int loc_x = 0;
		int loc_y = 0;
		int loc_t = 0;
		for(int i = 0; i < n; i++) {
			int t = sc.nextInt();
			int x = sc.nextInt();
			int y = sc.nextInt();
			
			int dis = Math.abs(loc_x-x) + Math.abs(loc_y-y);
			
			if(dis - (t - loc_t) > 0 || ((t - loc_t) - dis) % 2 != 0) {
				System.out.println("No");
				return;
			}
			loc_x = x;
			loc_y = y;
			loc_t = t;
		}
		System.out.println("Yes");
		sc.close();
	}

	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	public static void main(String[] args) {
		new Main().run();
	}
}
/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