import java.util.Scanner;

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

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

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

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

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

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

        if (result) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    } main {

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

        if (result) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] t = new int[110000]; t new int[110000] 110000 int[] x = new int[110000]; x new int[110000] 110000 int[] y = new int[110000]; y new int[110000] 110000 t[0] = 0 t[0] t 0 0 x[0] = 0 x[0] x 0 0 y[0] = 0 y[0] y 0 0 for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        } {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        } t[i+1] = scanner.nextInt() t[i+1] t i+1 i 1 scanner.nextInt() scanner.nextInt scanner x[i+1] = scanner.nextInt() x[i+1] x i+1 i 1 scanner.nextInt() scanner.nextInt scanner y[i+1] = scanner.nextInt() y[i+1] y i+1 i 1 scanner.nextInt() scanner.nextInt scanner boolean result = true; result true for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        } {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        } int dt = t[i + 1] - t[i]; dt t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]); dist Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]) Math.abs(x[i + 1] - x[i]) Math.abs Math x[i + 1] - x[i] x[i + 1] x i + 1 i 1 x[i] x i Math.abs(y[i + 1] - y[i]) Math.abs Math y[i + 1] - y[i] y[i + 1] y i + 1 i 1 y[i] y i if (dt < dist) {
                result = false;
                break;
            } dt < dist dt dist {
                result = false;
                break;
            } result = false result false break; if (dt % 2 != dist %2) {
                result = false;
                break;
            } dt % 2 != dist %2 dt % 2 dt 2 dist %2 dist 2 {
                result = false;
                break;
            } result = false result false break; if (result) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        } result {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

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

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

        if (result) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

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

        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int[] t = new int[110000];
        int[] x = new int[110000];
        int[] y = new int[110000];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for (int i = 0; i < N; i++) {
            t[i+1] = scanner.nextInt();
            x[i+1] = scanner.nextInt();
            y[i+1] = scanner.nextInt();
        }

        boolean result = true;

        for (int i = 0; i < N; i++) {
            int dt = t[i + 1] - t[i];
            int dist = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if (dt < dist) {
                result = false;
                break;
            }
            if (dt % 2 != dist %2) {
                result = false;
                break;
            }
        }

        if (result) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
}