import java.util.*;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    }
} import java.util.*; util.* java import java.util.stream.Stream; Stream java.util.stream public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    } main {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int cnt = sc.nextInt(); cnt sc.nextInt() sc.nextInt sc int[] time = new int[cnt] time new int[cnt] cnt point = new int[cnt]; point new int[cnt] cnt String ans = "Yes"; ans "Yes" for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        } int i = 0; int i = 0; i 0 i < cnt i cnt i++ i++ i {
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        } {
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        } time[i] = sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc point[i] = sc.nextInt() + sc.nextInt() point[i] point i sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc if(time[i] < point[i]){
                ans = "No";
            } time[i] < point[i] time[i] time i point[i] point i {
                ans = "No";
            } ans = "No" ans "No" if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            } (time[i] % 2) != (point[i] % 2) (time[i] % 2) time[i] time i 2 (point[i] % 2) point[i] point i 2 {
                ans = "No";
            } ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    }
} Main
import java.util.*;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cnt = sc.nextInt();
        int[] time = new int[cnt], point = new int[cnt];
        String ans = "Yes";
        for(int i = 0; i < cnt; i++){
            time[i] = sc.nextInt();
            point[i] = sc.nextInt() + sc.nextInt();
            if(time[i] < point[i]){
                ans = "No";
            }
            if((time[i] % 2) != (point[i] % 2)){
                ans = "No";
            }
        }
        System.out.println(ans);

    }
}
