import java.util.*;

public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

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

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

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

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

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

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

            System.out.println("Yes");
        }
    } main {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

            System.out.println("Yes");
        }
    } try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

            System.out.println("Yes");
        } {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

            System.out.println("Yes");
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int tt = 0; tt 0 int xx = 0; xx 0 int yy = 0; yy 0 for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            } {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            } int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int d = Math.abs(x - xx) + Math.abs(y - yy); d Math.abs(x - xx) + Math.abs(y - yy) Math.abs(x - xx) Math.abs Math x - xx x xx Math.abs(y - yy) Math.abs Math y - yy y yy if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                } (d > t - tt) || (d % 2 != (t - tt) % 2) (d > t - tt) d t - tt t tt (d % 2 != (t - tt) % 2) d % 2 d 2 (t - tt) % 2 (t - tt) t tt 2 {
                    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 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) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

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

} public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

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

} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            int tt = 0;
            int xx = 0;
            int yy = 0;

            for (int i = 0; i < N; i++) {
                int t = sc.nextInt();
                int x = sc.nextInt();
                int y = sc.nextInt();

                int d = Math.abs(x - xx) + Math.abs(y - yy);
                if ((d > t - tt) || (d % 2 != (t - tt) % 2)) {
                    System.out.println("No");
                    System.exit(0);
                }
            }

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

}