import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
} Main public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

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

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int numLines = scn.nextInt(); numLines scn.nextInt() scn.nextInt scn int time = 0; time 0 int x = 0; x 0 int y = 0; y 0 for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        } int i = 0; int i = 0; i 0 i < numLines i numLines i++ i++ i {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        } {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        } int timeStamp = scn.nextInt(); timeStamp scn.nextInt() scn.nextInt scn int newX = scn.nextInt(); newX scn.nextInt() scn.nextInt scn int newY = scn.nextInt(); newY scn.nextInt() scn.nextInt scn int distance = Math.abs(x - newX) + Math.abs(y - newY); distance Math.abs(x - newX) + Math.abs(y - newY) Math.abs(x - newX) Math.abs Math x - newX x newX Math.abs(y - newY) Math.abs Math y - newY y newY if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            } (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2 (distance <= timeStamp - time) distance timeStamp - time timeStamp time (timeStamp - time)%2 == distance%2 (timeStamp - time)%2 (timeStamp - time) timeStamp time 2 distance%2 distance 2 {
                time = timeStamp;
                x = newX;
                y = newY;
            } time = timeStamp time timeStamp x = newX x newX y = newY y newY {
                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" String[] args args public class Main {
    public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);

        int numLines = scn.nextInt();

        int time = 0;
        int x = 0;
        int y = 0;

        for (int i = 0; i < numLines; i++) {
            int timeStamp = scn.nextInt();
            int newX = scn.nextInt();
            int newY = scn.nextInt();

            int distance = Math.abs(x - newX) + Math.abs(y - newY);
            if ( (distance <= timeStamp - time) && (timeStamp - time)%2 == distance%2) {
                time = timeStamp;
                x = newX;
                y = newY;
            } else {
                System.out.println("No");
                return;
            }
        }

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

