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

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        }

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

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        }

    }
} 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);
        TaskC solver = new TaskC();
        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);
        TaskC solver = new TaskC();
        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) TaskC solver = new TaskC(); solver new TaskC() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        }

    } TaskC public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        } solve {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        } int n = in.nextInt(); n in.nextInt() in.nextInt in int nowX = 0; nowX 0 int nowY = 0; nowY 0 int nowT = 0; nowT 0 for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            } {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            } int t = in.nextInt(); t in.nextInt() in.nextInt in int x = in.nextInt(); x in.nextInt() in.nextInt in int y = in.nextInt(); y in.nextInt() in.nextInt in int dist = Math.abs(nowX - x) + Math.abs(nowY - y); dist Math.abs(nowX - x) + Math.abs(nowY - y) Math.abs(nowX - x) Math.abs Math nowX - x nowX x Math.abs(nowY - y) Math.abs Math nowY - y nowY y if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                } dist % 2 == (Math.abs(nowT - t) % 2) dist % 2 dist 2 (Math.abs(nowT - t) % 2) Math.abs(nowT - t) Math.abs Math nowT - t nowT t 2 {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    } dist <= Math.abs(nowT - t) dist Math.abs(nowT - t) Math.abs Math nowT - t nowT t {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } nowX = x nowX x nowY = y nowY y nowT = t nowT t {
                        out.print("No");
                        return;
                    } out.print("No") out.print out "No" return; {
                    out.print("No");
                    return;
                } out.print("No") out.print out "No" return; out.print("Yes") out.print out "Yes" 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);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        }

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

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        }

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

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            int nowX = 0;
            int nowY = 0;
            int nowT = 0;
            for (int i = 0; i < n; i++) {
                int t = in.nextInt();
                int x = in.nextInt();
                int y = in.nextInt();
                int dist = Math.abs(nowX - x) + Math.abs(nowY - y);

                if (dist % 2 == (Math.abs(nowT - t) % 2)) {
                    if (dist <= Math.abs(nowT - t)) {
                        nowX = x;
                        nowY = y;
                        nowT = t;
                    } else {
                        out.print("No");
                        return;
                    }
                } else {
                    out.print("No");
                    return;
                }
            }
            out.print("Yes");

        }

    }
}

