import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        int tPrev = 0;
        int xPrev = 0;
        int yPrev = 0;
        for (int i = 0; i < n; i++) {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        }
        System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        int tPrev = 0;
        int xPrev = 0;
        int yPrev = 0;
        for (int i = 0; i < n; i++) {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        int tPrev = 0;
        int xPrev = 0;
        int yPrev = 0;
        for (int i = 0; i < n; i++) {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        }
        System.out.println("Yes");
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        int tPrev = 0;
        int xPrev = 0;
        int yPrev = 0;
        for (int i = 0; i < n; i++) {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        }
        System.out.println("Yes");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner int tPrev = 0; tPrev 0 int xPrev = 0; xPrev 0 int yPrev = 0; yPrev 0 for (int i = 0; i < n; i++) {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        } {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        } String[] txy = scanner.nextLine().split(" ", 3); txy scanner.nextLine().split(" ", 3) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 3 int t = Integer.parseInt(txy[0]); t Integer.parseInt(txy[0]) Integer.parseInt Integer txy[0] txy 0 int x = Integer.parseInt(txy[1]); x Integer.parseInt(txy[1]) Integer.parseInt Integer txy[1] txy 1 int y = Integer.parseInt(txy[2]); y Integer.parseInt(txy[2]) Integer.parseInt Integer txy[2] txy 2 int tDiff = t - tPrev; tDiff t - tPrev t tPrev int xDiff = Math.abs(x - xPrev); xDiff Math.abs(x - xPrev) Math.abs Math x - xPrev x xPrev int yDiff = Math.abs(y - yPrev); yDiff Math.abs(y - yPrev) Math.abs Math y - yPrev y yPrev int remainingTime = tDiff - xDiff - yDiff; remainingTime tDiff - xDiff - yDiff tDiff - xDiff - yDiff tDiff xDiff yDiff if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            } remainingTime < 0 || remainingTime % 2 != 0 remainingTime < 0 remainingTime 0 remainingTime % 2 != 0 remainingTime % 2 remainingTime 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; tPrev = t tPrev t xPrev = x xPrev x yPrev = y yPrev y System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        int tPrev = 0;
        int xPrev = 0;
        int yPrev = 0;
        for (int i = 0; i < n; i++) {
            String[] txy = scanner.nextLine().split(" ", 3);
            int t = Integer.parseInt(txy[0]);
            int x = Integer.parseInt(txy[1]);
            int y = Integer.parseInt(txy[2]);

            int tDiff = t - tPrev;
            int xDiff = Math.abs(x - xPrev);
            int yDiff = Math.abs(y - yPrev);

            int remainingTime = tDiff - xDiff - yDiff;
            if (remainingTime < 0 || remainingTime % 2 != 0) {
                System.out.println("No");
                return;
            }

            tPrev = t;
            xPrev = x;
            yPrev = y;
        }
        System.out.println("Yes");
    }
}
