import java.util.*;
import java.io.*;
public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    } main {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int num = new Integer(in.nextLine()); num new Integer(in.nextLine()) int x = 0 x 0 y = 0 y 0 time = 0; time 0 for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        } ; num > 0 num 0 num-- num-- num {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        } {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        } String[] s = in.nextLine().split(" "); s in.nextLine().split(" ") in.nextLine().split in.nextLine() in.nextLine in " " int diffTime = new Integer(s[0]) - time; diffTime new Integer(s[0]) - time new Integer(s[0]) time int xx = new Integer(s[1]); xx new Integer(s[1]) int yy = new Integer(s[2]); yy new Integer(s[2]) int diffXY = Math.abs(xx - x) + Math.abs(yy - y); diffXY Math.abs(xx - x) + Math.abs(yy - y) Math.abs(xx - x) Math.abs Math xx - x xx x Math.abs(yy - y) Math.abs Math yy - y yy y if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            } diffTime < diffXY || (diffTime - diffXY) % 2 != 0 diffTime < diffXY diffTime diffXY (diffTime - diffXY) % 2 != 0 (diffTime - diffXY) % 2 (diffTime - diffXY) diffTime diffXY 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; time = new Integer(s[0]) time new Integer(s[0]) x = xx x xx y = yy y yy System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    }
} Main
import java.util.*;
import java.io.*;
public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int num = new Integer(in.nextLine());
        int x = 0, y = 0, time = 0;
        for (; num > 0; num--) {
            String[] s = in.nextLine().split(" ");
            int diffTime = new Integer(s[0]) - time;
            int xx = new Integer(s[1]);
            int yy = new Integer(s[2]);
            int diffXY = Math.abs(xx - x) + Math.abs(yy - y);
            if (diffTime < diffXY || (diffTime - diffXY) % 2 != 0) {
                System.out.println("No");
                return;
            }
            time = new Integer(s[0]);
            x = xx;
            y = yy;
        }
        System.out.println("Yes");
    }
}