import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        System.out.println("Yes");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        System.out.println("Yes");
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        System.out.println("Yes");
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        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 t = 0; t 0 int x = 0; x 0 int y = 0; y 0 while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        } n-- > 0 n-- n 0 {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        } int nt = sc.nextInt(); nt sc.nextInt() sc.nextInt sc int nx = sc.nextInt(); nx sc.nextInt() sc.nextInt sc int ny = sc.nextInt(); ny sc.nextInt() sc.nextInt sc int dist = Math.abs(nx-x) + Math.abs(ny-y); dist Math.abs(nx-x) + Math.abs(ny-y) Math.abs(nx-x) Math.abs Math nx-x nx x Math.abs(ny-y) Math.abs Math ny-y ny y if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            } nt % 2 != (nx+ny) % 2 nt % 2 nt 2 (nx+ny) % 2 (nx+ny) nx ny 2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; if (nt - t < dist) {
                System.out.println("No");
                return;
            } nt - t < dist nt - t nt t dist {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; t = nt t nt x = nx x nx y = ny y ny 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 {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        System.out.println("Yes");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        int t = 0;
        int x = 0;
        int y = 0;
        while (n-- > 0) {
            int nt = sc.nextInt();
            int nx = sc.nextInt();
            int ny = sc.nextInt();
            
            int dist = Math.abs(nx-x) + Math.abs(ny-y);
            
            if (nt % 2 != (nx+ny) % 2) {
                System.out.println("No");
                return;
            }
            
            if (nt - t < dist) {
                System.out.println("No");
                return;
            }
            
            t = nt;
            x = nx;
            y = ny;
        }
        
        
        System.out.println("Yes");
    }
}