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

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

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        } 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 d = Math.abs(px - x) + Math.abs(py - y); d Math.abs(px - x) + Math.abs(py - y) Math.abs(px - x) Math.abs Math px - x px x Math.abs(py - y) Math.abs Math py - y py y if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            } t - pt < d || ((t - pt) + d) % 2 == 1 t - pt < d t - pt t pt d ((t - pt) + d) % 2 == 1 ((t - pt) + d) % 2 ((t - pt) + d) (t - pt) t pt d 2 1 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; 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 sc = new Scanner(System.in);
        int n = sc.nextInt();

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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

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

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

            int d = Math.abs(px - x) + Math.abs(py - y);
            if (t - pt < d || ((t - pt) + d) % 2 == 1) {
                System.out.println("No");
                return;
            }
        }

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