import java.util.*;
import java.util.stream.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.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] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        }
        int nx,ny,nt;
        nx = 0;
        ny = 0;
        nt = 0;
        String res = "Yes";
        for (int i = 0; i < N; i++){
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        }
        System.out.println(res);
    }
}
 import java.util.*; util.* java import java.util.stream.*; stream.* java.util class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.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] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        }
        int nx,ny,nt;
        nx = 0;
        ny = 0;
        nt = 0;
        String res = "Yes";
        for (int i = 0; i < N; i++){
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        }
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.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] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        }
        int nx,ny,nt;
        nx = 0;
        ny = 0;
        nt = 0;
        String res = "Yes";
        for (int i = 0; i < N; i++){
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        }
        System.out.println(res);
    } main {
        Scanner input = new Scanner(System.in);
        int N = input.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] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        }
        int nx,ny,nt;
        nx = 0;
        ny = 0;
        nt = 0;
        String res = "Yes";
        for (int i = 0; i < N; i++){
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        }
        System.out.println(res);
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input 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] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            t[i] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        } {
            t[i] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        } t[i] = input.nextInt() t[i] t i input.nextInt() input.nextInt input x[i] = input.nextInt() x[i] x i input.nextInt() input.nextInt input y[i] = input.nextInt() y[i] y i input.nextInt() input.nextInt input int nx nx ny ny nt; nt nx = 0 nx 0 ny = 0 ny 0 nt = 0 nt 0 String res = "Yes"; res "Yes" for (int i = 0; i < N; i++){
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        } {
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        } int dx = Math.abs(x[i]-nx); dx Math.abs(x[i]-nx) Math.abs Math x[i]-nx x[i] x i nx int dy = Math.abs(y[i]-ny); dy Math.abs(y[i]-ny) Math.abs Math y[i]-ny y[i] y i ny int dt = Math.abs(t[i]-nt); dt Math.abs(t[i]-nt) Math.abs Math t[i]-nt t[i] t i nt if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            } dt-(dx+dy) >= 0 dt-(dx+dy) dt (dx+dy) dx dy 0 {
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                } (dt-(dx+dy))%2 == 0 (dt-(dx+dy))%2 (dt-(dx+dy)) dt (dx+dy) dx dy 2 0 {
                    continue;
                } continue; {
                    res = "No";
                    break;
                } res = "No" res "No" break; {
                res = "No";
                break;
            } res = "No" res "No" break; System.out.println(res) System.out.println System.out System System.out res String[] args args
import java.util.*;
import java.util.stream.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int N = input.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] = input.nextInt();
            x[i] = input.nextInt();
            y[i] = input.nextInt();
        }
        int nx,ny,nt;
        nx = 0;
        ny = 0;
        nt = 0;
        String res = "Yes";
        for (int i = 0; i < N; i++){
            int dx = Math.abs(x[i]-nx);
            int dy = Math.abs(y[i]-ny);
            int dt = Math.abs(t[i]-nt);
            if (dt-(dx+dy) >= 0){
                if ((dt-(dx+dy))%2 == 0){
                    continue;
                } else{
                    res = "No";
                    break;
                }
            } else{
                res = "No";
                break;
            }
        }
        System.out.println(res);
    }
}

