import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    } main {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int t[] = new int[n]; t new int[n] n int x[] = new int[n]; x new int[n] n int y[] = new int[n]; y new int[n] n for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        } {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        } t[i] = in.nextInt() t[i] t i in.nextInt() in.nextInt in x[i] = in.nextInt() x[i] x i in.nextInt() in.nextInt in y[i] = in.nextInt() y[i] y i in.nextInt() in.nextInt in int ct = 0 ct 0 cx = 0 cx 0 cy = 0; cy 0 for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        } {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        } int time = t[i] - ct; time t[i] - ct t[i] t i ct int diffX = Math.abs(x[i] - cx); diffX Math.abs(x[i] - cx) Math.abs Math x[i] - cx x[i] x i cx int diffY = Math.abs(y[i] - cy); diffY Math.abs(y[i] - cy) Math.abs Math y[i] - cy y[i] y i cy if (diffX + diffY > time) {
                System.out.println("No");
                return;
            } diffX + diffY > time diffX + diffY diffX diffY time {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            } time % 2 != (diffX + diffY) % 2 time % 2 time 2 (diffX + diffY) % 2 (diffX + diffY) diffX diffY 2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; ct = t[i] ct t[i] t i cx = x[i] cx x[i] x i cy = y[i] cy y[i] y i 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(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int t[] = new int[n];
        int x[] = new int[n];
        int y[] = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = in.nextInt();
            x[i] = in.nextInt();
            y[i] = in.nextInt();
        }

        int ct = 0, cx = 0, cy = 0;
        for (int i = 0; i < n; i++) {
            int time = t[i] - ct;
            int diffX = Math.abs(x[i] - cx);
            int diffY = Math.abs(y[i] - cy);

            if (diffX + diffY > time) {
                System.out.println("No");
                return;
            }

            if (time % 2 != (diffX + diffY) % 2) {
                System.out.println("No");
                return;
            }

            ct = t[i];
            cx = x[i];
            cy = y[i];
        }

        System.out.println("Yes");
    }
}