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[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        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[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        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[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        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[n]; t new int[n] n int[] x = new int[n]; x new int[n] n int[] y = new int[n]; y new int[n] n for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc int X = 0; X 0 int Y = 0; Y 0 int dis = 0; dis 0 int dif = t[0]; dif t[0] t 0 for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        } {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        } dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]) dis Math.abs(X - x[i]) + Math.abs(Y - y[i]) Math.abs(X - x[i]) Math.abs Math X - x[i] X x[i] x i Math.abs(Y - y[i]) Math.abs Math Y - y[i] Y y[i] y i X = x[i] X x[i] x i Y = y[i] Y y[i] y i if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            } dif < dis dif dis {
                System.out.println("No");
                System.exit(0);
            } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            } if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                } dif % 2 == dis % 2 dif % 2 dif 2 dis % 2 dis 2 {
                    System.out.println("No");
                    System.exit(0);
                } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            } catch (Exception e) {

            } Exception e {

            } {
                dif = t[i + 1] - t[i];
            } dif = t[i + 1] - t[i] dif t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i 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[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        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[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        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[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int X = 0;
        int Y = 0;
        int dis = 0;
        int dif = t[0];
        for (int i = 0; i < n; i++) {
            dis = Math.abs(X - x[i]) + Math.abs(Y - y[i]);
            X = x[i];
            Y = y[i];
            if (dif < dis) {
                System.out.println("No");
                System.exit(0);
            } else {
                if (dif % 2 == dis % 2)
                    ;
                else {
                    System.out.println("No");
                    System.exit(0);
                }
            }
            try {
                dif = t[i + 1] - t[i];
            } catch (Exception e) {

            }
        }
        System.out.println("Yes");
    }
}
