import java.util.*;

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

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

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

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

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

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int t = 0; t 0 int x = 0; x 0 int y = 0; y 0 for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        } {
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        } int tmpT = scanner.nextInt(); tmpT scanner.nextInt() scanner.nextInt scanner int tmpX = scanner.nextInt(); tmpX scanner.nextInt() scanner.nextInt scanner int tmpY = scanner.nextInt(); tmpY scanner.nextInt() scanner.nextInt scanner int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y); distance Math.abs(tmpX - x) + Math.abs(tmpY - y) Math.abs(tmpX - x) Math.abs Math tmpX - x tmpX x Math.abs(tmpY - y) Math.abs Math tmpY - y tmpY y int timeDiff = tmpT - t; timeDiff tmpT - t tmpT t if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            } distance <= timeDiff distance timeDiff {
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            } if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                } distance%2 != timeDiff%2 distance%2 distance 2 timeDiff%2 timeDiff 2 {
                    System.out.println("No");
                    return;
                } System.out.println("No") System.out.println System.out System System.out "No" return; {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; t = tmpT t tmpT x = tmpX x tmpX y = tmpY y tmpY 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 scanner = new Scanner(System.in);

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

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

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

    }
} Main
import java.util.*;

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

        int N = scanner.nextInt();

        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<N; i++){
            int tmpT = scanner.nextInt();
            int tmpX = scanner.nextInt();
            int tmpY = scanner.nextInt();

            int distance = Math.abs(tmpX - x) + Math.abs(tmpY - y);
            int timeDiff = tmpT - t;

            // 時間
            if(distance <= timeDiff){
                if(distance%2 != timeDiff%2){
                    System.out.println("No");
                    return;
                }
            }else{
                System.out.println("No");
                return;
            }

            // 更新
            t = tmpT;
            x = tmpX;
            y = tmpY;
        }

        System.out.println("Yes");

    }
}
