import java.util.Scanner;

public class Main {

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int N = scanner.nextInt();

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    }

} import java.util.Scanner; Scanner java.util public class Main {

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int N = scanner.nextInt();

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    }

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

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    } main {
        int N = scanner.nextInt();

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    } int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner boolean canReach = true; canReach true int prevT = 0; prevT 0 int prevX = 0; prevX 0 int prevY = 0; prevY 0 for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        } {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        } int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner int hereX = scanner.nextInt(); hereX scanner.nextInt() scanner.nextInt scanner int hereY = scanner.nextInt(); hereY scanner.nextInt() scanner.nextInt scanner int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY); distance Math.abs(hereX - prevX) + Math.abs(hereY - prevY) Math.abs(hereX - prevX) Math.abs Math hereX - prevX hereX prevX Math.abs(hereY - prevY) Math.abs Math hereY - prevY hereY prevY if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            } distance > t || distance % 2 != Math.abs(t - prevT) % 2 distance > t distance t distance % 2 != Math.abs(t - prevT) % 2 distance % 2 distance 2 Math.abs(t - prevT) % 2 Math.abs(t - prevT) Math.abs Math t - prevT t prevT 2 {
                canReach = false;
                break;
            } canReach = false canReach false break; prevT = t prevT t prevX = hereX prevX hereX prevY = hereY prevY hereY System.out.println(canReach ? "Yes" : "No") System.out.println System.out System System.out canReach ? "Yes" : "No" canReach "Yes" "No" String[] args args public class Main {

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int N = scanner.nextInt();

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    }

} public class Main {

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int N = scanner.nextInt();

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    }

} Main
import java.util.Scanner;

public class Main {

    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int N = scanner.nextInt();

        boolean canReach = true;
        int prevT = 0;
        int prevX = 0;
        int prevY = 0;
        for (int i = 0; i < N; i++) {
            int t = scanner.nextInt();
            int hereX = scanner.nextInt();
            int hereY = scanner.nextInt();
            int distance = Math.abs(hereX - prevX) + Math.abs(hereY - prevY);

            if (distance > t || distance % 2 != Math.abs(t - prevT) % 2) {
                canReach = false;
                break;
            }

            prevT = t;
            prevX = hereX;
            prevY = hereY;
        }

        System.out.println(canReach ? "Yes" : "No");
    }

}