import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        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 = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int t_prev = 0; t_prev 0 int x_prev = 0; x_prev 0 int y_prev = 0; y_prev 0 for (int i=0; i<N; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        } 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 distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        } 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 distance = Math.abs(x - x_prev) + Math.abs(y - y_prev); distance Math.abs(x - x_prev) + Math.abs(y - y_prev) Math.abs(x - x_prev) Math.abs Math x - x_prev x x_prev Math.abs(y - y_prev) Math.abs Math y - y_prev y y_prev if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            } distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0 distance > (t - t_prev) distance (t - t_prev) t t_prev (distance - (t - t_prev)) % 2 != 0 (distance - (t - t_prev)) % 2 (distance - (t - t_prev)) distance (t - t_prev) t t_prev 2 0 {
            	System.out.println("No");
            	return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; t_prev = t t_prev t x_prev = x x_prev x y_prev = y y_prev y 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 = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        System.out.println("Yes");
    }
} public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        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 = sc.nextInt();
        int t_prev = 0;
        int x_prev = 0;
        int y_prev = 0;

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

            int distance = Math.abs(x - x_prev) + Math.abs(y - y_prev);
            if (distance > (t - t_prev) || (distance - (t - t_prev)) % 2 != 0){
            	System.out.println("No");
            	return;
            }
            t_prev = t;
            x_prev = x;
            y_prev = y;
        }
        System.out.println("Yes");
    }
}
