import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086C {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086C {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) ABC086C solver = new ABC086C(); solver new ABC086C() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ABC086C {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        }

    } ABC086C public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        } solve {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        } int N = Integer.parseInt(in.next()); N Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in int[] t = new int[N + 1]; t new int[N + 1] N + 1 N 1 int[] x = new int[N + 1]; x new int[N + 1] N + 1 N 1 int[] y = new int[N + 1]; y new int[N + 1] N + 1 N 1 for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            } {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            } t[i + 1] = Integer.parseInt(in.next()) t[i + 1] t i + 1 i 1 Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in x[i + 1] = Integer.parseInt(in.next()) x[i + 1] x i + 1 i 1 Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in y[i + 1] = Integer.parseInt(in.next()) y[i + 1] y i + 1 i 1 Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in boolean ans = true; ans true for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            } {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            } int dt = t[i + 1] - t[i]; dt t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]); dest Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]) Math.abs(x[i + 1] - x[i]) Math.abs Math x[i + 1] - x[i] x[i + 1] x i + 1 i 1 x[i] x i Math.abs(y[i + 1] - y[i]) Math.abs Math y[i + 1] - y[i] y[i + 1] y i + 1 i 1 y[i] y i if (dt < dest) ans = false; dt < dest dt dest ans = false ans false if (dest % 2 != dt % 2) ans = false; dest % 2 != dt % 2 dest % 2 dest 2 dt % 2 dt 2 ans = false ans false if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            } ans {
                out.println("Yes");
            } out.println("Yes") out.println out "Yes" {
                out.println("No");
            } out.println("No") out.println out "No" int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086C {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086C {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC086C solver = new ABC086C();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086C {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 整数の入力
            int N = Integer.parseInt(in.next());
            int[] t = new int[N + 1];
            int[] x = new int[N + 1];
            int[] y = new int[N + 1];
            for (int i = 0; i < N; i++) {
                t[i + 1] = Integer.parseInt(in.next());
                x[i + 1] = Integer.parseInt(in.next());
                y[i + 1] = Integer.parseInt(in.next());
            }

            boolean ans = true;

            for (int i = 0; i < N; i++) {
                int dt = t[i + 1] - t[i];
                int dest = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);

                if (dt < dest) ans = false;
                if (dest % 2 != dt % 2) ans = false;
            }

            // 出力
            if (ans) {
                out.println("Yes");
            } else {
                out.println("No");
            }

        }

    }
}

