import java.util.*;
public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        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 = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        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 for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        } {
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        } int memo_t = sc.nextInt(); memo_t sc.nextInt() sc.nextInt sc int memo_x = sc.nextInt(); memo_x sc.nextInt() sc.nextInt sc int memo_y = sc.nextInt(); memo_y sc.nextInt() sc.nextInt sc int d = memo_t - t; d memo_t - t memo_t t int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y); dist Math.abs(memo_x - x) + Math.abs(memo_y -y) Math.abs(memo_x - x) Math.abs Math memo_x - x memo_x x Math.abs(memo_y -y) Math.abs Math memo_y -y memo_y y if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            } (d < dist) || ((dist - d)%2 != 0) (d < dist) d dist ((dist - d)%2 != 0) (dist - d)%2 (dist - d) dist d 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; t = memo_t t memo_t x = memo_x x memo_x y = memo_y y memo_y 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 = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        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 = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        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 = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memo_t - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        System.out.println("Yes");
    }
}
