import java.util.Scanner;

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

        for (int i = 0; i < N; i++) {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }
        System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int preT = 0;
        int preX = 0;
        int preY = 0;

        for (int i = 0; i < N; i++) {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int preT = 0;
        int preX = 0;
        int preY = 0;

        for (int i = 0; i < N; i++) {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int preT = 0;
        int preX = 0;
        int preY = 0;

        for (int i = 0; i < N; i++) {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }
        System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int preT = 0; preT 0 int preX = 0; preX 0 int preY = 0; preY 0 for (int i = 0; i < N; i++) {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

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

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        } {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        } int postT = Integer.parseInt(sc.next()); postT Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int postX = Integer.parseInt(sc.next()); postX Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int postY = Integer.parseInt(sc.next()); postY Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next 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 ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            } (dist > dt) || ((dt - dist) % 2 != 0) (dist > dt) dist dt ((dt - dist) % 2 != 0) (dt - dist) % 2 (dt - dist) dt dist 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; preT = postT preT postT preX = postX preX postX preY = postY preY postY System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner;

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

        for (int i = 0; i < N; i++) {
            int postT = Integer.parseInt(sc.next());
            int postX = Integer.parseInt(sc.next());
            int postY = Integer.parseInt(sc.next());

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            // 1.目標地点までにかけられる時間の差より目標地点までの距離が長いと移動できない
            // 2.時刻 - 距離　
            if ((dist > dt) || ((dt - dist) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }
        System.out.println("Yes");
    }
}
