import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} Main public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    } main {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    } try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        } catch(Exception e){
            System.out.println(e);
        } Exception e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int t = 0; t 0 int x = 0; x 0 int y = 0; y 0 for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            } {
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            } String strSplit[] = br.readLine().split(" "); strSplit br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int ti = Integer.parseInt(strSplit[0]); ti Integer.parseInt(strSplit[0]) Integer.parseInt Integer strSplit[0] strSplit 0 int xi = Integer.parseInt(strSplit[1]); xi Integer.parseInt(strSplit[1]) Integer.parseInt Integer strSplit[1] strSplit 1 int yi = Integer.parseInt(strSplit[2]); yi Integer.parseInt(strSplit[2]) Integer.parseInt Integer strSplit[2] strSplit 2 int dt = ti - t; dt ti - t ti t int dx = xi - x; dx xi - x xi x int dy = yi - y; dy yi - y yi y int dxdy = dx + dy; dxdy dx + dy dx dy if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                } dxdy < 0 dxdy 0 {
                    dxdy = dxdy % 2 * (-1);
                } dxdy = dxdy % 2 * (-1) dxdy dxdy % 2 * (-1) dxdy % 2 dxdy 2 (-1) 1 t = ti t ti x = xi x xi y = yi y yi if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                } (Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2 (Math.abs(dx) + Math.abs(dy)) <= dt (Math.abs(dx) + Math.abs(dy)) Math.abs(dx) Math.abs Math dx Math.abs(dy) Math.abs Math dy dt dxdy%2 == dt%2 dxdy%2 dxdy 2 dt%2 dt 2 {
                    
                } {
                    System.out.println("No");
                    return;
                } System.out.println("No") System.out.println System.out System System.out "No" return; 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) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            int N = Integer.parseInt(br.readLine());
            int t = 0;
            int x = 0;
            int y = 0;
            
            for(int i=0; i<N; i++){
                String strSplit[] = br.readLine().split(" ");
                int ti = Integer.parseInt(strSplit[0]);
                int xi = Integer.parseInt(strSplit[1]);
                int yi = Integer.parseInt(strSplit[2]);
                
                int dt = ti - t;
                int dx = xi - x;
                int dy = yi - y;
                int dxdy = dx + dy;
                
                if(dxdy < 0){
                    dxdy = dxdy % 2 * (-1);
                }
                
                t = ti;
                x = xi;
                y = yi;
                
                if((Math.abs(dx) + Math.abs(dy)) <= dt && dxdy%2 == dt%2){
                    
                }else{
                    System.out.println("No");
                    return;
                }
            }
            
            System.out.println("Yes");
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
}