import java.util.*;

class Main{
    static Scanner sc = new Scanner(System.in);
    static StringBuffer sb = new StringBuffer();
    public static void main(String args[]){
        int N=sc.nextInt(),dt,dx,dy,t=0,x=0,y=0;
        String res="Yes";
        for(int i=0;i<N;i++){
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        }
        System.out.println(res);
    }
} import java.util.*; util.* java class Main{
    static Scanner sc = new Scanner(System.in);
    static StringBuffer sb = new StringBuffer();
    public static void main(String args[]){
        int N=sc.nextInt(),dt,dx,dy,t=0,x=0,y=0;
        String res="Yes";
        for(int i=0;i<N;i++){
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        }
        System.out.println(res);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static StringBuffer sb = new StringBuffer(); sb new StringBuffer() public static void main(String args[]){
        int N=sc.nextInt(),dt,dx,dy,t=0,x=0,y=0;
        String res="Yes";
        for(int i=0;i<N;i++){
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        }
        System.out.println(res);
    } main {
        int N=sc.nextInt(),dt,dx,dy,t=0,x=0,y=0;
        String res="Yes";
        for(int i=0;i<N;i++){
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        }
        System.out.println(res);
    } int N=sc.nextInt() N sc.nextInt() sc.nextInt sc dt dt dx dx dy dy t=0 t 0 x=0 x 0 y=0; y 0 String res="Yes"; res "Yes" for(int i=0;i<N;i++){
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        } {
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        } dt=t dt t dx=x dx x dy=y dy y t=sc.nextInt() t sc.nextInt() sc.nextInt sc x=sc.nextInt() x sc.nextInt() sc.nextInt sc y=sc.nextInt() y sc.nextInt() sc.nextInt sc int D=Math.abs(x-dx)+Math.abs(y-dy) D Math.abs(x-dx)+Math.abs(y-dy) Math.abs(x-dx) Math.abs Math x-dx x dx Math.abs(y-dy) Math.abs Math y-dy y dy T=t-dt; T t-dt t dt if(T<D||D%2!=T%2){
                res="No";
                break;
            } T<D||D%2!=T%2 T<D T D D%2!=T%2 D%2 D 2 T%2 T 2 {
                res="No";
                break;
            } res="No" res "No" break; System.out.println(res) System.out.println System.out System System.out res String args[] args
import java.util.*;

class Main{
    static Scanner sc = new Scanner(System.in);
    static StringBuffer sb = new StringBuffer();
    public static void main(String args[]){
        int N=sc.nextInt(),dt,dx,dy,t=0,x=0,y=0;
        String res="Yes";
        for(int i=0;i<N;i++){
            dt=t;dx=x;dy=y;
            t=sc.nextInt();x=sc.nextInt();y=sc.nextInt();
            int D=Math.abs(x-dx)+Math.abs(y-dy),T=t-dt;
            if(T<D||D%2!=T%2){
                res="No";
                break;
            }
        }
        System.out.println(res);
    }
}