import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

        System.out.println("Yes");
    }
}

/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