import java.util.Scanner;

public class Main {
    public void main(Scanner sc) {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public void main(Scanner sc) {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    }
} Main public void main(Scanner sc) {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    } main {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int pt = 0; pt 0 int px = 0; px 0 int py = 0; py 0 boolean flg = true; flg true for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        } int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int dt = t - pt; dt t - pt t pt int dl = Math.abs(x - px) + Math.abs(y - py); dl Math.abs(x - px) + Math.abs(y - py) Math.abs(x - px) Math.abs Math x - px x px Math.abs(y - py) Math.abs Math y - py y py if (dt < dl) {
                flg = false;
                break;
            } dt < dl dt dl {
                flg = false;
                break;
            } flg = false flg false break; if (dt % 2 != dl % 2) {
                flg = false;
                break;
            } dt % 2 != dl % 2 dt % 2 dt 2 dl % 2 dl 2 {
                flg = false;
                break;
            } flg = false flg false break; pt = t pt t px = x px x py = y py y System.out.println(flg ? "Yes" : "No") System.out.println System.out System System.out flg ? "Yes" : "No" flg "Yes" "No" Scanner sc sc public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) new Main().main(sc) new Main().main new Main() sc sc.close() sc.close sc String[] args args public class Main {
    public void main(Scanner sc) {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    }
} public class Main {
    public void main(Scanner sc) {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public void main(Scanner sc) {
        int n = sc.nextInt();
        int pt = 0;
        int px = 0;
        int py = 0;

        boolean flg = true;
        for (int i = 1; i <= n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int dt = t - pt;
            int dl = Math.abs(x - px) + Math.abs(y - py);
            if (dt < dl) {
                flg = false;
                break;
            }

            if (dt % 2 != dl % 2) {
                flg = false;
                break;
            }

            pt = t;
            px = x;
            py = y;
        }

        System.out.println(flg ? "Yes" : "No");
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Main().main(sc);
        sc.close();
    }
}
