import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = 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 lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }

        System.out.println("Yes");
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }

        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = 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 lastT = 0; lastT 0 int lastX = 0; lastX 0 int lastY = 0; lastY 0 for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = 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 diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = 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 diffT = t - lastT; diffT t - lastT t lastT int distance = Math.abs(x - lastX) + Math.abs(y - lastY); distance Math.abs(x - lastX) + Math.abs(y - lastY) Math.abs(x - lastX) Math.abs Math x - lastX x lastX Math.abs(y - lastY) Math.abs Math y - lastY y lastY if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            } distance > diffT || diffT % 2 != distance % 2 distance > diffT distance diffT diffT % 2 != distance % 2 diffT % 2 diffT 2 distance % 2 distance 2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; lastT = t lastT t lastX = x lastX x lastY = y lastY 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 lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = 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 lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = 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 lastT = 0;
        int lastX = 0;
        int lastY = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int diffT = t - lastT;
            int distance = Math.abs(x - lastX) + Math.abs(y - lastY);
            if (distance > diffT || diffT % 2 != distance % 2) {
                System.out.println("No");
                return;
            }

            lastT = t;
            lastX = x;
            lastY = y;
        }

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