import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int preT = 0;
        int preX = 0;
        int preY = 0;

        boolean can = true;
        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }

        if (can)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int preT = 0;
        int preX = 0;
        int preY = 0;

        boolean can = true;
        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }

        if (can)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int preT = 0;
        int preX = 0;
        int preY = 0;

        boolean can = true;
        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }

        if (can)
            System.out.println("Yes");
        else
            System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int preT = 0;
        int preX = 0;
        int preY = 0;

        boolean can = true;
        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }

        if (can)
            System.out.println("Yes");
        else
            System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 boolean can = true; can true for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        } {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        } int postT = sc.nextInt(); postT sc.nextInt() sc.nextInt sc int postX = sc.nextInt(); postX sc.nextInt() sc.nextInt sc int postY = sc.nextInt(); postY sc.nextInt() sc.nextInt sc int dt = postT - preT; dt postT - preT postT preT int dist = Math.abs(postX - preX) + Math.abs(postY - preY); dist Math.abs(postX - preX) + Math.abs(postY - preY) Math.abs(postX - preX) Math.abs Math postX - preX postX preX Math.abs(postY - preY) Math.abs Math postY - preY postY preY if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            } (dt < dist) || ((dist - dt) % 2 != 0) (dt < dist) dt dist ((dist - dt) % 2 != 0) (dist - dt) % 2 (dist - dt) dist dt 2 0 {
                can = false;
                break;
            } can = false can false break; preT = postT preT postT preX = postX preX postX preY = postY preY postY if (can)
            System.out.println("Yes");
        else
            System.out.println("No"); can System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String args[] args
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int preT = 0;
        int preX = 0;
        int preY = 0;

        boolean can = true;
        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                can = false;
                break;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }

        if (can)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}
