
import java.util.Scanner;

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

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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

    static class Point {
        int x;
        int y;

        Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int n = scanner.nextInt();

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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

    static class Point {
        int x;
        int y;

        Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        }
    }
} Main public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int n = scanner.nextInt();

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    } main {
        final Scanner scanner = new Scanner(System.in);
        final int n = scanner.nextInt();

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner Point currentPoint = new Point(0, 0); currentPoint new Point(0, 0) for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        } {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        } final int time = scanner.nextInt(); time scanner.nextInt() scanner.nextInt scanner final int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner final int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y); distance Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y) Math.abs(x - currentPoint.x) Math.abs Math x - currentPoint.x x currentPoint.x currentPoint currentPoint.x Math.abs(y - currentPoint.y) Math.abs Math y - currentPoint.y y currentPoint.y currentPoint currentPoint.y if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            } distance > time || (time - distance) % 2 == 1 distance > time distance time (time - distance) % 2 == 1 (time - distance) % 2 (time - distance) time distance 2 1 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" final String[] args args static class Point {
        int x;
        int y;

        Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        }
    } Point int x; x int y; y Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        } Point {
            this.x = x;
            this.y = y;
        } this.x = x this.x this this.x x this.y = y this.y this this.y y final int x x final int y y public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int n = scanner.nextInt();

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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

    static class Point {
        int x;
        int y;

        Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        }
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        final int n = scanner.nextInt();

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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

    static class Point {
        int x;
        int y;

        Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        }
    }
} Main

import java.util.Scanner;

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

        Point currentPoint = new Point(0, 0);

        for (int i = 0; i < n; i++) {
            final int time = scanner.nextInt();
            final int x = scanner.nextInt();
            final int y = scanner.nextInt();

            final int distance = Math.abs(x - currentPoint.x) + Math.abs(y - currentPoint.y);
            if (distance > time || (time - distance) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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

    static class Point {
        int x;
        int y;

        Point(final int x, final int y) {
            this.x = x;
            this.y = y;
        }
    }
}
