import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n = scn.nextInt();
        String answer = "Yes";

        int t1=0;
        int x1=0;
        int y1=0;
        for(int i=0;i<n;i++){
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        }
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n = scn.nextInt();
        String answer = "Yes";

        int t1=0;
        int x1=0;
        int y1=0;
        for(int i=0;i<n;i++){
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n = scn.nextInt();
        String answer = "Yes";

        int t1=0;
        int x1=0;
        int y1=0;
        for(int i=0;i<n;i++){
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        }
        System.out.println(answer);
    } main {
        Scanner scn=new Scanner(System.in);
        int n = scn.nextInt();
        String answer = "Yes";

        int t1=0;
        int x1=0;
        int y1=0;
        for(int i=0;i<n;i++){
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        }
        System.out.println(answer);
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn String answer = "Yes"; answer "Yes" int t1=0; t1 0 int x1=0; x1 0 int y1=0; y1 0 for(int i=0;i<n;i++){
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        } {
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        } int t2=scn.nextInt(); t2 scn.nextInt() scn.nextInt scn int x2=scn.nextInt(); x2 scn.nextInt() scn.nextInt scn int y2=scn.nextInt(); y2 scn.nextInt() scn.nextInt scn int  difT=t2-t1; difT t2-t1 t2 t1 int difX=Math.abs(x1-x2); difX Math.abs(x1-x2) Math.abs Math x1-x2 x1 x2 int difY=Math.abs(y1-y2); difY Math.abs(y1-y2) Math.abs Math y1-y2 y1 y2 if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            } difT-(difX+difY)<0||(difT-(difX+difY))%2==1 difT-(difX+difY)<0 difT-(difX+difY) difT (difX+difY) difX difY 0 (difT-(difX+difY))%2==1 (difT-(difX+difY))%2 (difT-(difX+difY)) difT (difX+difY) difX difY 2 1 {
                answer="No";
                break;
            } answer="No" answer "No" break; {
                t1=t2;
                x1=x2;
                y1=y2;
            } t1=t2 t1 t2 x1=x2 x1 x2 y1=y2 y1 y2 System.out.println(answer) System.out.println System.out System System.out answer String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n = scn.nextInt();
        String answer = "Yes";

        int t1=0;
        int x1=0;
        int y1=0;
        for(int i=0;i<n;i++){
            int t2=scn.nextInt();
            int x2=scn.nextInt();
            int y2=scn.nextInt();
           int  difT=t2-t1;
            int difX=Math.abs(x1-x2);
            int difY=Math.abs(y1-y2);
            if(difT-(difX+difY)<0||(difT-(difX+difY))%2==1){
                answer="No";
                break;
            }else{
                t1=t2;
                x1=x2;
                y1=y2;
            }
        }
        System.out.println(answer);
    }
}
