import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(String args[]) throws IOException {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(String args[]) throws IOException {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
} Main static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) public static void main(String args[]) throws IOException {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    } main {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    } FastReader s = new FastReader(); s new FastReader() int n = s.nextInt(); n s.nextInt() s.nextInt s int a = 0 a 0 b =0 b 0 ot = 0; ot 0 for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        } {
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        } int t = s.nextInt(); t s.nextInt() s.nextInt s t = t - ot t t - ot t ot ot = ot + t ot ot + t ot t int x = s.nextInt(); x s.nextInt() s.nextInt s int y = s.nextInt(); y s.nextInt() s.nextInt s int l = Math.abs(x-a); l Math.abs(x-a) Math.abs Math x-a x a int u = Math.abs(y-b); u Math.abs(y-b) Math.abs Math y-b y b if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            } l+u>t l+u l u t {
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; int k = t - l - u; k t - l - u t - l - u t l u if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            } k%2==1 k%2 k 2 1 {
//                System.out.println("b");
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; a = x a x b = y b y System.out.println("Yes") System.out.println System.out System System.out "Yes" String args[] args static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        } FastReader {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        } br = new BufferedReader(new
                    InputStreamReader(System.in)) br new BufferedReader(new
                    InputStreamReader(System.in)) String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() {
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                str = br.readLine();
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(String args[]) throws IOException {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
} public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(String args[]) throws IOException {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    public static void main(String args[]) throws IOException {
        FastReader s = new FastReader();
        int n = s.nextInt();
        int a = 0, b =0, ot = 0;
        for(int i=0;i<n;i++){
            int t = s.nextInt();
            t = t - ot;
            ot = ot + t;
            int x = s.nextInt();
            int y = s.nextInt();
            int l = Math.abs(x-a);
            int u = Math.abs(y-b);
//            System.out.println(i+" "+l+" "+u);
            if(l+u>t){
//                System.out.println(i+"a");
                System.out.println("No");
                return;
            }
            int k = t - l - u;
            if(k%2==1){
//                System.out.println("b");
                System.out.println("No");
                return;
            }
            a = x;
            b = y;
        }
        System.out.println("Yes");
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}
