import java.util.*;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    } main {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String ans = "Yes"; ans "Yes" int nowT = 0; nowT 0 int nowX = 0; nowX 0 int nowY = 0; nowY 0 for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        } 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 vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        } 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 vGap = Math.abs(x - nowX) + Math.abs(y - nowY); vGap 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 int tGap = t - nowT; tGap t - nowT t nowT if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            } vGap > t - nowT vGap t - nowT t nowT {
                ans = "No";
                break;
            } ans = "No" ans "No" break; if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            } vGap % 2 != tGap % 2 vGap % 2 vGap 2 tGap % 2 tGap 2 {
                ans = "No";
                break;
            } ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "Yes";

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

        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int vGap = Math.abs(x - nowX) + Math.abs(y - nowY);
            int tGap = t - nowT;
            if (vGap > t - nowT) {
                ans = "No";
                break;
            } else if (vGap % 2 != tGap % 2) {
                ans = "No";
                break;
            }
        }

        System.out.println(ans);
    }
}