import java.util.*;

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

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    }
} Main public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int before_t = 0; before_t 0 int t = 0; t 0 int before_x = 0; before_x 0 int x = 0; x 0 int before_y = 0; before_y 0 int y = 0; y 0 int dt = 0; dt 0 int dxy = 0; dxy 0 boolean ans_flg = true; ans_flg true for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        } {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        } t = sc.nextInt() t sc.nextInt() sc.nextInt sc x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc dt = t - before_t dt t - before_t t before_t dxy = Math.abs(x - before_x) + Math.abs(y - before_y) dxy Math.abs(x - before_x) + Math.abs(y - before_y) Math.abs(x - before_x) Math.abs Math x - before_x x before_x Math.abs(y - before_y) Math.abs Math y - before_y y before_y if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            } (dt < dxy) || (dt % 2 != dxy % 2) (dt < dxy) dt dxy (dt % 2 != dxy % 2) dt % 2 dt 2 dxy % 2 dxy 2 {
                ans_flg = false;
                break;
            } ans_flg = false ans_flg false break; before_t = t before_t t before_x = x before_x x before_y = y before_y y sc.close() sc.close sc System.out.println(ans_flg ? "Yes" : "No") System.out.println System.out System System.out ans_flg ? "Yes" : "No" ans_flg "Yes" "No" String... args args public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    }
} public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    }
} Main
import java.util.*;

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

        int before_t = 0;
        int t = 0;
        int before_x = 0;
        int x = 0;
        int before_y = 0;
        int y = 0;

        int dt = 0;
        int dxy = 0;
        boolean ans_flg = true;
        for (int i = 0; i < N; i++) {
            t = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();

            dt = t - before_t;
            dxy = Math.abs(x - before_x) + Math.abs(y - before_y);

            if ((dt < dxy) || (dt % 2 != dxy % 2)) {
                ans_flg = false;
                break;
            }

            before_t = t;
            before_x = x;
            before_y = y;
        }
        sc.close();
        System.out.println(ans_flg ? "Yes" : "No");
    }
}