import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

        System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

        System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t1 = 0; t1 0 int x1 = 0; x1 0 int y1 = 0; y1 0 int t2 = 0; t2 0 int x2 = 0; x2 0 int y2 = 0; y2 0 double dt = 0; dt 0 for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        } {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        } t1 = Integer.parseInt(sc.next()) t1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc x1 = Integer.parseInt(sc.next()) x1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc y1 = Integer.parseInt(sc.next()) y1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc dt = Math.abs(x2 - x1) + Math.abs(y2 - y1) dt Math.abs(x2 - x1) + Math.abs(y2 - y1) Math.abs(x2 - x1) Math.abs Math x2 - x1 x2 x1 Math.abs(y2 - y1) Math.abs Math y2 - y1 y2 y1 if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            } dt > t1 || ((t2-t1) - dt) % 2 != 0 dt > t1 dt t1 ((t2-t1) - dt) % 2 != 0 ((t2-t1) - dt) % 2 ((t2-t1) - dt) (t2-t1) t2 t1 dt 2 0 {
                System.out.println("No");
                System.exit(0);
            } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 x2 = x1 x2 x1 y2 = y1 y2 y1 t2 = t1 t2 t1 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 sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        int t1 = 0;
        int x1 = 0;
        int y1 = 0;
        int t2 = 0;
        int x2 = 0;
        int y2 = 0;
        double dt = 0;

        for (int i = 0; i < N; i++) {
            t1 = Integer.parseInt(sc.next());
            x1 = Integer.parseInt(sc.next());
            y1 = Integer.parseInt(sc.next());

            dt = Math.abs(x2 - x1) + Math.abs(y2 - y1);
            if ( dt > t1 || ((t2-t1) - dt) % 2 != 0) {
                System.out.println("No");
                System.exit(0);
            }

            x2 = x1;
            y2 = y1;
            t2 = t1;
        }

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