import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int nt = 0 nt 0 nx = 0 nx 0 ny = 0; ny 0 boolean bool = true; bool true for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                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 xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                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 xlen = Math.abs(nx-x); xlen Math.abs(nx-x) Math.abs Math nx-x nx x int ylen = Math.abs(ny-y); ylen Math.abs(ny-y) Math.abs Math ny-y ny y int tlen = t-nt; tlen t-nt t nt if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            } tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2 tlen < xlen + ylen tlen xlen + ylen xlen ylen tlen % 2 != (xlen+ylen) % 2 tlen % 2 tlen 2 (xlen+ylen) % 2 (xlen+ylen) xlen ylen 2 {
                bool = false;
                break;
            } bool = false bool false break; System.out.println(bool ? "Yes" : "No") System.out.println System.out System System.out bool ? "Yes" : "No" bool "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int nt = 0, nx = 0, ny = 0;
        boolean bool = true;
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int xlen = Math.abs(nx-x);
            int ylen = Math.abs(ny-y);
            int tlen = t-nt;
            if(tlen < xlen + ylen || tlen % 2 != (xlen+ylen) % 2){
                bool = false;
                break;
            }
        }
        System.out.println(bool ? "Yes" : "No");
    }
}
