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
 *
 * @author mikit
 */
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);
        ABC086CTraveling solver = new ABC086CTraveling();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086CTraveling {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

        public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        }

    }
}
 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);
        ABC086CTraveling solver = new ABC086CTraveling();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086CTraveling {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

        public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        }

    }
} 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);
        ABC086CTraveling solver = new ABC086CTraveling();
        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);
        ABC086CTraveling solver = new ABC086CTraveling();
        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) ABC086CTraveling solver = new ABC086CTraveling(); solver new ABC086CTraveling() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ABC086CTraveling {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

        public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        }

    } ABC086CTraveling public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        } solve {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        } int t = 0 t 0 x = 0 x 0 y = 0; y 0 int n = in.nextInt(); n in.nextInt() in.nextInt in for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            } {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            } int nt = in.nextInt() nt in.nextInt() in.nextInt in nx = in.nextInt() nx in.nextInt() in.nextInt in ny = in.nextInt(); ny in.nextInt() in.nextInt in if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                } !canMove(nx - x, ny - y, nt - t) canMove(nx - x, ny - y, nt - t) canMove nx - x nx x ny - y ny y nt - t nt t {
                    out.println("No");
                    return;
                } out.println("No") out.println out "No" return; out.println("Yes") out.println out "Yes" int testNumber testNumber Scanner in in PrintWriter out out public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        } canMove {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        } int d = t - Math.abs(x) - Math.abs(y); d t - Math.abs(x) - Math.abs(y) t - Math.abs(x) - Math.abs(y) t Math.abs(x) Math.abs Math x Math.abs(y) Math.abs Math y return d >= 0 && d % 2 == 0; d >= 0 && d % 2 == 0 d >= 0 d 0 d % 2 == 0 d % 2 d 2 0 int x x int y y int t t 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);
        ABC086CTraveling solver = new ABC086CTraveling();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086CTraveling {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

        public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        }

    }
} 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);
        ABC086CTraveling solver = new ABC086CTraveling();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086CTraveling {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

        public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        }

    }
} 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
 *
 * @author mikit
 */
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);
        ABC086CTraveling solver = new ABC086CTraveling();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC086CTraveling {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t = 0, x = 0, y = 0;
            int n = in.nextInt();
            for (int i = 0; i < n; i++) {
                int nt = in.nextInt(), nx = in.nextInt(), ny = in.nextInt();
                if (!canMove(nx - x, ny - y, nt - t)) {
                    out.println("No");
                    return;
                }
            }
            out.println("Yes");
        }

        public static boolean canMove(int x, int y, int t) {
            int d = t - Math.abs(x) - Math.abs(y);
            return d >= 0 && d % 2 == 0;
        }

    }
}

