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

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author noob_coder
 */
public class Main {
        public static void main(String[] args) {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                InputReader in = new InputReader(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, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                }

        }

        static class InputReader {
                InputStream is;
                private byte[] inbuf = new byte[1024];
                public int lenbuf = 0;
                public int ptrbuf = 0;

                public InputReader(InputStream is) {
                        this.is = is;
                }

                private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                }

                public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                }

        }
}
 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.InputMismatchException; InputMismatchException java.util import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io public class Main {
        public static void main(String[] args) {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                InputReader in = new InputReader(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, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                }

        }

        static class InputReader {
                InputStream is;
                private byte[] inbuf = new byte[1024];
                public int lenbuf = 0;
                public int ptrbuf = 0;

                public InputReader(InputStream is) {
                        this.is = is;
                }

                private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                }

                public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                }

        }
} Main public static void main(String[] args) {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                InputReader in = new InputReader(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;
                InputReader in = new InputReader(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 InputReader in = new InputReader(inputStream); in new InputReader(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, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                }

        } TaskC public void solve(int testNumber, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                } solve {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                } int n = in.i(); n in.i() in.i in int prev_t = 0 prev_t 0 prev_a = 0 prev_a 0 prev_b = 0; prev_b 0 boolean flag = true; flag true for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        } {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        } int t = in.i(); t in.i() in.i in int a = in.i(); a in.i() in.i in int b = in.i(); b in.i() in.i in int m = t - prev_t; m t - prev_t t prev_t int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b)); q (Math.abs(a - prev_a) + Math.abs(b - prev_b)) Math.abs(a - prev_a) Math.abs Math a - prev_a a prev_a Math.abs(b - prev_b) Math.abs Math b - prev_b b prev_b if (m < q || (m - q) % 2 == 1) flag = false; m < q || (m - q) % 2 == 1 m < q m q (m - q) % 2 == 1 (m - q) % 2 (m - q) m q 2 1 flag = false flag false prev_t = t prev_t t prev_a = a prev_a a prev_b = b prev_b b if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        } flag {
                                out.println("Yes");
                        } out.println("Yes") out.println out "Yes" {
                                out.println("No");
                        } out.println("No") out.println out "No" int testNumber testNumber InputReader in in PrintWriter out out static class InputReader {
                InputStream is;
                private byte[] inbuf = new byte[1024];
                public int lenbuf = 0;
                public int ptrbuf = 0;

                public InputReader(InputStream is) {
                        this.is = is;
                }

                private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                }

                public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                }

        } InputReader InputStream is; is private byte[] inbuf = new byte[1024]; inbuf new byte[1024] 1024 public int lenbuf = 0; lenbuf 0 public int ptrbuf = 0; ptrbuf 0 public InputReader(InputStream is) {
                        this.is = is;
                } InputReader {
                        this.is = is;
                } this.is = is this.is this this.is is InputStream is is private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                } readByte {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                } if (lenbuf == -1) throw new InputMismatchException(); lenbuf == -1 lenbuf -1 1 throw new InputMismatchException(); new InputMismatchException() if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        } ptrbuf >= lenbuf ptrbuf lenbuf {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        } ptrbuf = 0 ptrbuf 0 try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                } IOException e {
                                        throw new InputMismatchException();
                                } throw new InputMismatchException(); new InputMismatchException() {
                                        lenbuf = is.read(inbuf);
                                } lenbuf = is.read(inbuf) lenbuf is.read(inbuf) is.read is inbuf if (lenbuf <= 0) return -1; lenbuf <= 0 lenbuf 0 return -1; -1 1 return inbuf[ptrbuf++]; inbuf[ptrbuf++] inbuf ptrbuf++ ptrbuf public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                } i {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                } int num = 0 num 0 b; b boolean minus = false; minus false while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; (b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-') (b = readByte()) != -1 (b = readByte()) b readByte() readByte -1 1 !((b >= '0' && b <= '9') || b == '-') ((b >= '0' && b <= '9') || b == '-') (b >= '0' && b <= '9') b >= '0' b '0' b <= '9' b '9' b == '-' b '-' if (b == '-') {
                                minus = true;
                                b = readByte();
                        } b == '-' b '-' {
                                minus = true;
                                b = readByte();
                        } minus = true minus true b = readByte() b readByte() readByte while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        } true {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        } if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                } b >= '0' && b <= '9' b >= '0' b '0' b <= '9' b '9' {
                                        num = num * 10 + (b - '0');
                                } num = num * 10 + (b - '0') num num * 10 + (b - '0') num * 10 num 10 (b - '0') b '0' {
                                        return minus ? -num : num;
                                } return minus ? -num : num; minus ? -num : num minus -num num num b = readByte() b readByte() readByte public class Main {
        public static void main(String[] args) {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                InputReader in = new InputReader(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, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                }

        }

        static class InputReader {
                InputStream is;
                private byte[] inbuf = new byte[1024];
                public int lenbuf = 0;
                public int ptrbuf = 0;

                public InputReader(InputStream is) {
                        this.is = is;
                }

                private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                }

                public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                }

        }
} public class Main {
        public static void main(String[] args) {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                InputReader in = new InputReader(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, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                }

        }

        static class InputReader {
                InputStream is;
                private byte[] inbuf = new byte[1024];
                public int lenbuf = 0;
                public int ptrbuf = 0;

                public InputReader(InputStream is) {
                        this.is = is;
                }

                private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                }

                public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                }

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

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author noob_coder
 */
public class Main {
        public static void main(String[] args) {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                InputReader in = new InputReader(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, InputReader in, PrintWriter out) {
                        int n = in.i();
                        int prev_t = 0, prev_a = 0, prev_b = 0;
                        boolean flag = true;
                        for (int i = 0; i < n; i++) {
                                int t = in.i();
                                int a = in.i();
                                int b = in.i();
                                int m = t - prev_t;
                                int q = (Math.abs(a - prev_a) + Math.abs(b - prev_b));
                                if (m < q || (m - q) % 2 == 1) flag = false;
                                prev_t = t;
                                prev_a = a;
                                prev_b = b;
                        }
                        if (flag) {
                                out.println("Yes");
                        } else {
                                out.println("No");
                        }
                }

        }

        static class InputReader {
                InputStream is;
                private byte[] inbuf = new byte[1024];
                public int lenbuf = 0;
                public int ptrbuf = 0;

                public InputReader(InputStream is) {
                        this.is = is;
                }

                private int readByte() {
                        if (lenbuf == -1) throw new InputMismatchException();
                        if (ptrbuf >= lenbuf) {
                                ptrbuf = 0;
                                try {
                                        lenbuf = is.read(inbuf);
                                } catch (IOException e) {
                                        throw new InputMismatchException();
                                }
                                if (lenbuf <= 0) return -1;
                        }
                        return inbuf[ptrbuf++];
                }

                public int i() {
                        int num = 0, b;
                        boolean minus = false;
                        while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;
                        if (b == '-') {
                                minus = true;
                                b = readByte();
                        }

                        while (true) {
                                if (b >= '0' && b <= '9') {
                                        num = num * 10 + (b - '0');
                                } else {
                                        return minus ? -num : num;
                                }
                                b = readByte();
                        }
                }

        }
}

