import java.util.*;

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int preT = 0;
        int preX = 0;
        int preY = 0;


        for(int i = 0; i < N; i++){
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        }

        System.out.println("Yes");
    }
} import java.util.*; util.* java class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int preT = 0;
        int preX = 0;
        int preY = 0;


        for(int i = 0; i < N; i++){
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        }

        System.out.println("Yes");
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int preT = 0;
        int preX = 0;
        int preY = 0;


        for(int i = 0; i < N; i++){
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        }

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

        int N = sc.nextInt();

        int preT = 0;
        int preX = 0;
        int preY = 0;


        for(int i = 0; i < N; i++){
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        }

        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 preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 for(int i = 0; i < N; i++){
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        } {
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        } int currentT = sc.nextInt(); currentT sc.nextInt() sc.nextInt sc int currentX = sc.nextInt(); currentX sc.nextInt() sc.nextInt sc int currentY = sc.nextInt(); currentY sc.nextInt() sc.nextInt sc int diff = currentT - preT; diff currentT - preT currentT preT int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY); distance Math.abs(currentX - preX) + Math.abs(currentY - preY) Math.abs(currentX - preX) Math.abs Math currentX - preX currentX preX Math.abs(currentY - preY) Math.abs Math currentY - preY currentY preY if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            } (diff < distance) || ((distance - diff) % 2 != 0) (diff < distance) diff distance ((distance - diff) % 2 != 0) (distance - diff) % 2 (distance - diff) distance diff 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; preT = currentT preT currentT preX = currentX preX currentX preY = currentY preY currentY System.out.println("Yes") System.out.println System.out System System.out "Yes" String args[] args
import java.util.*;

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int preT = 0;
        int preX = 0;
        int preY = 0;


        for(int i = 0; i < N; i++){
            int currentT = sc.nextInt();
            int currentX = sc.nextInt();
            int currentY = sc.nextInt();

            int diff = currentT - preT;
            int distance = Math.abs(currentX - preX) + Math.abs(currentY - preY);

            if((diff < distance) || ((distance - diff) % 2 != 0)){
                System.out.println("No");
                return;
            }
            preT = currentT;
            preX = currentX;
            preY = currentY;

        }

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