import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int nowX = 0; nowX 0 int nowY = 0; nowY 0 int nowT = 0; nowT 0 boolean isCan = false; isCan false for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        } {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        } String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int t = Integer.parseInt(line[0]); t Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int x = Integer.parseInt(line[1]); x Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int y = Integer.parseInt(line[2]); y Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 int dt = t - nowT; dt t - nowT t nowT int dxy = Math.abs(x - nowX) + Math.abs(y - nowY); dxy Math.abs(x - nowX) + Math.abs(y - nowY) Math.abs(x - nowX) Math.abs Math x - nowX x nowX Math.abs(y - nowY) Math.abs Math y - nowY y nowY if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            } dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0) dt >= dxy dt dxy ((dt - dxy) % 2 == 0 || dt - dxy == 0) (dt - dxy) % 2 == 0 (dt - dxy) % 2 (dt - dxy) dt dxy 2 0 dt - dxy == 0 dt - dxy dt dxy 0 {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } isCan = true isCan true nowT = t nowT t nowX = x nowX x nowY = y nowY y {
                isCan = false;
                break;
            } isCan = false isCan false break; if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } isCan {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());

        int nowX = 0;
        int nowY = 0;
        int nowT = 0;

        boolean isCan = false;

        for (int i = 0; i < N; i++) {
            String[] line = sc.nextLine().split(" ");
            int t = Integer.parseInt(line[0]);
            int x = Integer.parseInt(line[1]);
            int y = Integer.parseInt(line[2]);

            int dt = t - nowT;
            int dxy = Math.abs(x - nowX) + Math.abs(y - nowY);
            if (dt >= dxy && ((dt - dxy) % 2 == 0 || dt - dxy == 0)) {
                isCan = true;
                nowT = t;
                nowX = x;
                nowY = y;
            } else {
                isCan = false;
                break;
            }
        }

        if (isCan) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}