public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    }
} Main private static java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) public static void main(String[] args) {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    } main {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        } int i = 0, lastT = 0, lastX = 0, lastY = 0; int i = 0 i 0 lastT = 0 lastT 0 lastX = 0 lastX 0 lastY = 0; lastY 0 i < n i n i++ i++ i {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        } {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        } int t = scanner.nextInt() t scanner.nextInt() scanner.nextInt scanner x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner int distance = Math.abs(x - lastX) + Math.abs(y - lastY); distance Math.abs(x - lastX) + Math.abs(y - lastY) Math.abs(x - lastX) Math.abs Math x - lastX x lastX Math.abs(y - lastY) Math.abs Math y - lastY y lastY int j = distance - (t - lastT); j distance - (t - lastT) distance (t - lastT) t lastT if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            } j >= 1 || j % 2 == -1 j >= 1 j 1 j % 2 == -1 j % 2 j 2 -1 1 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; lastT = t lastT t lastX = x lastX x lastY = y lastY y System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    }
} Main
public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        for (int i = 0, lastT = 0, lastX = 0, lastY = 0; i < n; i++) {
            int t = scanner.nextInt(), x = scanner.nextInt(), y = scanner.nextInt();

            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            int j = distance - (t - lastT);
            if (j >= 1 || j % 2 == -1) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }
        System.out.println("Yes");
    }
}