import java.util.*;
 
public class Main{

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} import java.util.*; util.* java public class Main{

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        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 = new int[3][N+1]; t new int[3][N+1] 3 N+1 N 1 t[0][0] = 0 t[0][0] t[0] t 0 0 0 t[1][0] = 0 t[1][0] t[1] t 1 0 0 t[2][0] = 0 t[2][0] t[2] t 2 0 0 for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        } {
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        } t[0][i] = sc.nextInt() t[0][i] t[0] t 0 i sc.nextInt() sc.nextInt sc t[1][i] = sc.nextInt() t[1][i] t[1] t 1 i sc.nextInt() sc.nextInt sc t[2][i] = sc.nextInt() t[2][i] t[2] t 2 i sc.nextInt() sc.nextInt sc sc.close() sc.close sc for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        } {
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        } if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            } t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1]) t[0][i] - t[0][i-1] t[0][i] t[0] t 0 i t[0][i-1] t[0] t 0 i-1 i 1 Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1]) Math.abs(t[1][i] - t[1][i-1]) Math.abs Math t[1][i] - t[1][i-1] t[1][i] t[1] t 1 i t[1][i-1] t[1] t 1 i-1 i 1 Math.abs(t[2][i] - t[2][i-1]) Math.abs Math t[2][i] - t[2][i-1] t[2][i] t[2] t 2 i t[2][i-1] t[2] t 2 i-1 i 1 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            } (t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2 (t[0][i] - t[0][i-1]) % 2 (t[0][i] - t[0][i-1]) t[0][i] t[0] t 0 i t[0][i-1] t[0] t 0 i-1 i 1 2 (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2 (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) Math.abs(t[1][i] - t[1][i-1]) Math.abs Math t[1][i] - t[1][i-1] t[1][i] t[1] t 1 i t[1][i-1] t[1] t 1 i-1 i 1 Math.abs(t[2][i] - t[2][i-1]) Math.abs Math t[2][i] - t[2][i-1] t[2][i] t[2] t 2 i t[2][i-1] t[2] t 2 i-1 i 1 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[]){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} public class Main{

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} Main
import java.util.*;
 
public class Main{

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[][] t = new int[3][N+1];
        t[0][0] = 0;
        t[1][0] = 0;
        t[2][0] = 0;

        for(int i = 1; i <= N; i++){
            t[0][i] = sc.nextInt();
            t[1][i] = sc.nextInt();
            t[2][i] = sc.nextInt();
        }
        sc.close();

        for(int i = 1; i <= N; i++){
            if(t[0][i] - t[0][i-1] < Math.abs(t[1][i] - t[1][i-1]) +
                                    Math.abs(t[2][i] - t[2][i-1])){
                System.out.println("No");
                return;
            } else if((t[0][i] - t[0][i-1]) % 2 != (Math.abs(t[1][i] - t[1][i-1]) +
                                                    Math.abs(t[2][i] - t[2][i-1])) % 2){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}